{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 大鱼论坛bbs\n",
    "## url **http://bbs.fxdayu.com**\n",
    "## HTML、CSS**http://www.w3school.com.cn/html/index.asp**\n",
    "## BeautifulSoup4 简介 **https://blog.csdn.net/love666666shen/article/details/77512353**"
   ]
  },
  {
   "attachments": {
    "%E5%9B%BE%E7%89%87.png": {
     "image/png": "iVBORw0KGgoAAAANSUhEUgAAAmsAAAEKCAIAAADCboXRAAAgAElEQVR4nO2d368kxZXn+Y/mP6iXkmiXzVUjNy3MUtglU26MW2MEwjalkl0LLB4sxgOod6pUssyAF7MYmx/KGuMB2ruaxZbtQYYqNYNA2Iz9gOyH++R+6PuW+5C/zjkRkZWVlVm37r2fj65anZUZkRGRkfHNOHEi4qYYAAAANuem404AAADAiQQFBQAAqAMKCgAAUAcUFAAAoA4oKAAAQB1QUAAAgDqgoAAAAHVAQQEAAOqAggIAANQBBQUAAKjDzhR0NR30Ol35N4k2CP5p9Ej/5u7BZ+794e+PAhGee+T1VlK+a6KxKajhdHXcaQIAAIdd9kGPDv987a3v39OtoaBXH+9linLPc58U8b3z8yf//mItSd5rrv/lj+/8+Fu3oKAAAHtMLQVdzftd008yfwefufDlrz48/9dr123YozcfPthc8F5/pOsqaMLhS/edOgWN4ziOP/rhJRQUAGB/qdsH/dtfPlH9v6KVv/6Xa2/NHjx/Lvn9/J2P/9ufjmTI3Ppax4p7/v4f/f7InFqMTqeC5uZcFBQAYB/ZzopbdEZtK/9pNMmMkL1bHvvlDRGmloKWgIICAMAx0JaCxvHhiw/kRt3LP/yoCIOCVgQFBQDYZ9pT0Pg/f3BPPjL6jVdz2ysKWhUUFABgn2lRQeNokivol37wfh4GBa0ICgoAsM/sSEFHhbgZBb1+7eUnvnrXxZsTD9477vuHVz+4oWI5OvzzH9+5+uozT/2P+75y5/mDy/P39V3WKej1az+fPnzfHbeeT1LSPbjjyw9cef43f7rhu/jGB/82Hd97/uAgcYO65eK9D81e+Z8PH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rr7zV+9g4a+furXcGSfXZnXrcgU9evWhNONyzcI6Clp0gk0X+XdPfsHbaQYAgJq06YsbCLMLBX13dscap9Nia5fsXoXlOf079/mLl59IRx8zbrw6dj1dA+mRSS1X0PjqYxdc62stBY3j3165LbmX7HH+9sptTq8UAAC24ZQqaO7Bu4GCxnF89MGrj30pm52S/938xSdez9x/culqVkG90dZU0MKHKx/1PHrj0Qve8WAAAKjNKVXQvA968alfrUnGwbfttqLXP377lenD912UUnrr44ljUNEHfeClgEk0T889YurqGgV9fXLQWB80jg9/9q2kM9179M0bcTI4KhdWBACABjilClqMgwb8fYpxUD0hRHH947fmX7+Qalu6MGE+DnrX7PfeQPk4qJqTU66gxRrC9/2k0OXaClpsIXfuWz89jJezoXZrAgCABjilChof/vTBRPn+2z860zpUyr/2o0/iOI7fn9+t1Kvg05fuOye16ndPplNu7MzRhBvRJO3/PfZLTyLLfXHPfeunIs76ChrHv3v6ruSCu3/wwsMH+BABADTPaVXQYj5oasnUZAp08duvHxbxf+GpX3k6rGmC88Xxs/mgvbufcQ2jh9H4Qqfb65y7Z67SmSXSZ1XO54Pe9v1fy6Ruo6DFozl30MWHCACgBY5RQT321QoK6s7vrLEmUdqtlCsVJPHfMn7NLBmUzrC89ZHXi15ceE2iXz91W7fnWSyiSOTBfT/RYbI1ibp3z83m4eEsV1BQsSYUPkQAAG1QW0Gv//WTd4p1+Lq928avvPPJX+zSrm6ot69konvwpe9fTRarTc/94erjmX9s74Fn3v5DHtnR4Yc//UY6bNm75cHnilNHhx++nG/lfeGef776sZrEma2L+9nLT2br4mbLw56/8/E3vQsA3fzFx55/O7n46PDDq09eOt/57OW50eB8XdwL4+ezdXHfe/mR28/1Oufu+Ppz7zq93lxBe53uxa/NknQeHb6Xrot786Ur/66E1WT5hXdE0d44fO+5By5kzsbfDcy7zf2J8CECAGiFegoq9cD8lXRGvaGS64u5JfKvP1uFTo2i0HoONgFmbxbvDipxHEfjXm/y07d/fOW+r9yZ7JrS6R585sK99z0VWof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CcaZfziZ9X1EbPINSFWazmOflmUchPaKVZdXN0bCvewBqUDPSHoDO40sKcDQYetOsx0ez5TtMfgX+QpMFovzsPRNXnJwGs+Ob/KDq1cgdUXOKTqqjM82j5/syc+K0M7jCrbl8ocYLp755Kr8nJdGkPwiU1brZLOE3d/1h7DYypm6Xz2ZxXiI79K4ajbSgzAi0HZA2UzjcXKvRa/ebPvvd+OvaR++ZzbK+cTDPouTQ2zsvTjV06Gud0lGMLA1nREEBDGtHa6BNToUprApnaKkBODmgoLAlKOixgoICHB8oKGwJCnqsoKAAxwcKClugBp/KJj9AG+hZm6dYXZxFHwH2AxQUAACgDigoAABAHVBQAACAOqCgAAAAdUBBAQAA6oCCAgAA1AEFBQAAqAMKCgAAUAcUFAAAoA7/H7v0UajKtDV3AAAAAElFTkSuQmCC"
    }
   },
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# requests库\n",
    "![%E5%9B%BE%E7%89%87.png](attachment:%E5%9B%BE%E7%89%87.png)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests\n",
    "r=requests.get(\"http://bbs.fxdayu.com\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "<!doctype html>\n",
      "<html>\n",
      "  <head>\n",
      "    <meta charset=\"utf-8\">\n",
      "    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n",
      "\n",
      "    <title>最近活动的主题 - 大鱼社区</title>\n",
      "    <meta name=\"description\" content=\"\">\n",
      "    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no\">\n",
      "    <meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n",
      "    <meta name=\"msapplication-tap-highlight\" content=\"no\" />\n",
      "\n",
      "    <link rel=\"stylesheet\" href=\"/static/spirit/stylesheets/vendors/font-awesome.min.517da4b1429b.css\">\n",
      "    <link rel=\"stylesheet\" href=\"/static/spirit/stylesheets/styles.all.min.9c8405da845e.css\">\n",
      "\n",
      "    <script src=\"/static/spirit/scripts/all.min.b131515b8957.js\"></script>\n",
      "    <script src=\"/static/spirit/scripts/js/like.no-min.fa861147d917.js\"></script>\n",
      "\n",
      "    <script>\n",
      "\n",
      "\t$( document ).ready(function() {\n",
      "\n",
      "        $.tab();\n",
      "\n",
      "        $( 'a.js-post' ).postify( {\n",
      "            csrfToken: \"PlRSClrKMwrkSiFLsgWeFQ9gBd32miRaFWX03BNHnoBME6jFtmb0bZM79VYZIwRV\",\n",
      "        } );\n",
      "\n",
      "        $('.js-messages').messages();\n",
      "\n",
      "        \n",
      "\n",
      "\t});\n",
      "\n",
      "\t</script>\n",
      "\n",
      "    \n",
      "\n",
      "    <!--[if (lt IE 9) & (!IEMobile)]>\n",
      "    <script src=\"//cdnjs.cloudflare.com/ajax/libs/selectivizr/1.0.2/selectivizr-min.js\"></script>\n",
      "    <script src=\"//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6/html5shiv.min.js\"></script>\n",
      "    <![endif]-->\n",
      "\n",
      "  </head>\n",
      "\n",
      "  <body>\n",
      "\n",
      "    \n",
      "\n",
      "  <header class=\"header js-tabs-container\">\n",
      "\t\t<a class=\"header-logo\" href=\"/\">大鱼社区</a>\n",
      "\n",
      "        \n",
      "            <a class=\"header-link\" href=\"/user/login/?next=/\">登录</a>\n",
      "        \n",
      "\t</header>\n",
      "\n",
      "    \n",
      "\n",
      "\n",
      "    \n",
      "\n",
      "    \n",
      "\n",
      "    <div class=\"container\" style=\"background-color: #f0f8ff;\">\n",
      "\t\t<div class=\"categories js-tabs-container\">\n",
      "            <!-- \n",
      "                <a class=\"dropdown-button js-tab\" href=\"#\" data-related=\".js-categories-content\">全部分类 <i class=\"fa fa-chevron-down\"></i></a>\n",
      "             -->\n",
      "\n",
      "\t\t\t<div class=\"tab-content js-tab-content js-categories-content\">\n",
      "\t\t\t\t<ul class=\"menu-categories\">\n",
      "                    \n",
      "                        <li><a class=\"menu-link\" href=\"/topic/active/\"  style=\"background-color: #fff;border-top: 2px solid orangered\"  >全部分类</a></li>\n",
      "                    \n",
      "                    \n",
      "                    \n",
      "                            \n",
      "                                <li><a class=\"menu-link\" href=\"/category/5/vnpy_fxdayu/\" >vnpy_fxdayu</a></li>\n",
      "                            \n",
      "                    \n",
      "                            \n",
      "                                <li><a class=\"menu-link\" href=\"/category/4/%E4%BA%8B%E4%BB%B6%E5%85%AC%E5%91%8A/\" >事件公告</a></li>\n",
      "                            \n",
      "                    \n",
      "                            \n",
      "                                <li><a class=\"menu-link\" href=\"/category/3/%E5%AE%89%E8%A3%85%E6%8A%A5%E9%94%99/\" >安装报错</a></li>\n",
      "                            \n",
      "                    \n",
      "                            \n",
      "                                <li><a class=\"menu-link\" href=\"/category/2/uncategorized/\" >未分类</a></li>\n",
      "                            \n",
      "                                      \n",
      "\t\t\t\t</ul>\n",
      "\t\t\t</div>\n",
      "\t\t</div>\n",
      "\n",
      "        <div class=\"new-topic\">\n",
      "            \n",
      "                <a class=\"button\" href=\"/topic/publish/\">创建主题</a>\n",
      "            \n",
      "\t\t</div>\n",
      "\t</div>\n",
      "\n",
      "    \n",
      "\n",
      "\n",
      "        <div class=\"rows\">\n",
      "\n",
      "        \n",
      "\t\t\t<div class=\"row\">\n",
      "                \n",
      "                    <div class=\"ribbon-tab-green\"><div class=\"rowIsTop\">置顶</div></div>\n",
      "                \n",
      "                <div class=\"row-answer\">\n",
      "                    <span>0</span>\n",
      "                    <p>Answers</p>\n",
      "                </div>\n",
      "                <div class=\"dialog-box\">\n",
      "                    0\n",
      "                    <div class=\"dialog-radius\"></div>\n",
      "                </div>\n",
      "                <div class=\"row-title\">\n",
      "                    \n",
      "                    \n",
      "                    <div style=\"width: 100%;display: flex;display: -webkit-flex;flex-direction: row;\">\n",
      "                        <a class=\"row-link row-title-link\" href=\"/topic/40/timingdigger%E4%BF%A1%E5%8F%B7%E6%8C%96%E6%8E%98/\" style=\"display:block;width:100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">TimingDigger信号挖掘</a>\n",
      "                    </div>\n",
      "                    <p>HFDataView与Timedigger使用案例：https://github.com/ChannelCMT/HelloGit\r\n",
      "数据与初步研究案例： https://pan.baidu.com/s/1IC5z9jyPwGJREFwb6GGpsg\r\n",
      "一起来假设： https://yiqixie.com/s/home/fcAC7HpVKS7B5MMqYi9GHAESf\r\n",
      "\r\n",
      "实习生这个月有时间就可以做信号挖掘，熟悉量化策略的生成流程。</p>\n",
      "                    <a class=\"row-tags\"  href=\"\">\n",
      "                        事件公告\n",
      "                    </a>\n",
      "                    <div class=\"row-userInfo\">\n",
      "                        <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                        <a class=\"username is-admin\" href=\"/user/2/xinge/\" style=\"display: block;text-align: left;\">xinge</a >\n",
      "                        <div class=\"userName_mobile\" title=\"2018年6月11日 12:46\">6月 11日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "                <div class=\"row-categary\">\n",
      "                    \n",
      "                        \n",
      "                            <a style=\"color: #FF0000;\" href=\"/category/4/%E4%BA%8B%E4%BB%B6%E5%85%AC%E5%91%8A/\">\n",
      "                                事件公告\n",
      "                            </a>\n",
      "                        \n",
      "                    \n",
      "                </div>\n",
      "                <div class=\"row-info\">\n",
      "                    <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                    <div class=\"user-info\">\n",
      "                        <a class=\"username is-admin\" href=\"/user/2/xinge/\" style=\"display: block;text-align: left;\">xinge</a >\n",
      "                        <div title=\"2018年6月11日 12:46\">6月 11日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "\t\t\t</div>\n",
      "        \n",
      "\t\t\t<div class=\"row\">\n",
      "                \n",
      "                <div class=\"row-answer\">\n",
      "                    <span>0</span>\n",
      "                    <p>Answers</p>\n",
      "                </div>\n",
      "                <div class=\"dialog-box\">\n",
      "                    0\n",
      "                    <div class=\"dialog-radius\"></div>\n",
      "                </div>\n",
      "                <div class=\"row-title\">\n",
      "                    \n",
      "                    \n",
      "                    <div style=\"width: 100%;display: flex;display: -webkit-flex;flex-direction: row;\">\n",
      "                        <a class=\"row-link row-title-link\" href=\"/topic/49/%E4%B8%8D%E6%8A%A5%E9%94%99%E4%B9%9F%E4%B8%8D%E8%BF%90%E8%A1%8C/\" style=\"display:block;width:100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">不报错也不运行</a>\n",
      "                    </div>\n",
      "                    <p>这个即使time span很短了也不运行。。应该不是电脑的原因了\r\n",
      "![捕获1.jpg](/media/spirit/images/69/7861d23bf979466a5e92ec5c93e42783.jpeg)</p>\n",
      "                    <a class=\"row-tags\"  href=\"\">\n",
      "                        未分类\n",
      "                    </a>\n",
      "                    <div class=\"row-userInfo\">\n",
      "                        <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                        <a class=\"username\" href=\"/user/69/%E9%AB%98%E5%B1%B1%E6%A0%B9/\" style=\"display: block;text-align: left;\">高山根</a >\n",
      "                        <div class=\"userName_mobile\" title=\"2018年9月14日 07:08\">9月 14日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "                <div class=\"row-categary\">\n",
      "                    \n",
      "                        \n",
      "                            <a  href=\"/category/2/uncategorized/\">\n",
      "                                未分类\n",
      "                            </a>\n",
      "                        \n",
      "                    \n",
      "                </div>\n",
      "                <div class=\"row-info\">\n",
      "                    <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                    <div class=\"user-info\">\n",
      "                        <a class=\"username\" href=\"/user/69/%E9%AB%98%E5%B1%B1%E6%A0%B9/\" style=\"display: block;text-align: left;\">高山根</a >\n",
      "                        <div title=\"2018年9月14日 07:08\">9月 14日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "\t\t\t</div>\n",
      "        \n",
      "\t\t\t<div class=\"row\">\n",
      "                \n",
      "                <div class=\"row-answer\">\n",
      "                    <span>0</span>\n",
      "                    <p>Answers</p>\n",
      "                </div>\n",
      "                <div class=\"dialog-box\">\n",
      "                    0\n",
      "                    <div class=\"dialog-radius\"></div>\n",
      "                </div>\n",
      "                <div class=\"row-title\">\n",
      "                    \n",
      "                    \n",
      "                    <div style=\"width: 100%;display: flex;display: -webkit-flex;flex-direction: row;\">\n",
      "                        <a class=\"row-link row-title-link\" href=\"/topic/48/ml_install_error/\" style=\"display:block;width:100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">ML_Install_Error</a>\n",
      "                    </div>\n",
      "                    <p>jaqs: pip install git+https://github.com/xingetouzi/jaqs-fxdayu.git@localds\r\n",
      "pip: python -m pip install pip==9.0.1\r\n",
      "python -m pip install pip==9.0.1 -i https://pypi.douban.com/simple\r\n",
      "rqalpha: pip install rqalpha==3.0.9\r\n",
      "pip install rqalpha==3.0.9 -i https://pypi.douban.com/simple</p>\n",
      "                    <a class=\"row-tags\"  href=\"\">\n",
      "                        安装报错\n",
      "                    </a>\n",
      "                    <div class=\"row-userInfo\">\n",
      "                        <img class=\"comment-avatar\" src=\"/media/image/11.png\"/>\n",
      "                        <a class=\"username\" href=\"/user/11/channel_cmt/\" style=\"display: block;text-align: left;\">Channel_CMT</a >\n",
      "                        <div class=\"userName_mobile\" title=\"2018年8月18日 04:24\">8月 18日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "                <div class=\"row-categary\">\n",
      "                    \n",
      "                        \n",
      "                            <a style=\"color: #054E9F;\" href=\"/category/3/%E5%AE%89%E8%A3%85%E6%8A%A5%E9%94%99/\">\n",
      "                                安装报错\n",
      "                            </a>\n",
      "                        \n",
      "                    \n",
      "                </div>\n",
      "                <div class=\"row-info\">\n",
      "                    <img class=\"comment-avatar\" src=\"/media/image/11.png\"/>\n",
      "                    <div class=\"user-info\">\n",
      "                        <a class=\"username\" href=\"/user/11/channel_cmt/\" style=\"display: block;text-align: left;\">Channel_CMT</a >\n",
      "                        <div title=\"2018年8月18日 04:24\">8月 18日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "\t\t\t</div>\n",
      "        \n",
      "\t\t\t<div class=\"row\">\n",
      "                \n",
      "                <div class=\"row-answer\">\n",
      "                    <span>2</span>\n",
      "                    <p>Answers</p>\n",
      "                </div>\n",
      "                <div class=\"dialog-box\">\n",
      "                    2\n",
      "                    <div class=\"dialog-radius\"></div>\n",
      "                </div>\n",
      "                <div class=\"row-title\">\n",
      "                    \n",
      "                    \n",
      "                    <div style=\"width: 100%;display: flex;display: -webkit-flex;flex-direction: row;\">\n",
      "                        <a class=\"row-link row-title-link\" href=\"/topic/41/rqalpha%E6%8A%A5%E9%94%99/\" style=\"display:block;width:100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">rqalpha报错</a>\n",
      "                    </div>\n",
      "                    <p>**bcolz需要安装1.1.2**\r\n",
      "bcolz1.1.2_wheel百度云盘链接: https://pan.baidu.com/s/12tPMpaPc0LN3sRbIJtMJrQ\r\n",
      "**rqalpha版本需要3.0.9**\r\n",
      "pip install rqalpha==3.0.9</p>\n",
      "                    <a class=\"row-tags\"  href=\"\">\n",
      "                        安装报错\n",
      "                    </a>\n",
      "                    <div class=\"row-userInfo\">\n",
      "                        <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                        <a class=\"username is-admin\" href=\"/user/2/xinge/\" style=\"display: block;text-align: left;\">xinge</a >\n",
      "                        <div class=\"userName_mobile\" title=\"2018年8月15日 14:59\">8月 15日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "                <div class=\"row-categary\">\n",
      "                    \n",
      "                        \n",
      "                            <a style=\"color: #054E9F;\" href=\"/category/3/%E5%AE%89%E8%A3%85%E6%8A%A5%E9%94%99/\">\n",
      "                                安装报错\n",
      "                            </a>\n",
      "                        \n",
      "                    \n",
      "                </div>\n",
      "                <div class=\"row-info\">\n",
      "                    <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                    <div class=\"user-info\">\n",
      "                        <a class=\"username is-admin\" href=\"/user/2/xinge/\" style=\"display: block;text-align: left;\">xinge</a >\n",
      "                        <div title=\"2018年8月15日 14:59\">8月 15日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "\t\t\t</div>\n",
      "        \n",
      "\t\t\t<div class=\"row\">\n",
      "                \n",
      "                <div class=\"row-answer\">\n",
      "                    <span>2</span>\n",
      "                    <p>Answers</p>\n",
      "                </div>\n",
      "                <div class=\"dialog-box\">\n",
      "                    2\n",
      "                    <div class=\"dialog-radius\"></div>\n",
      "                </div>\n",
      "                <div class=\"row-title\">\n",
      "                    \n",
      "                    \n",
      "                    <div style=\"width: 100%;display: flex;display: -webkit-flex;flex-direction: row;\">\n",
      "                        <a class=\"row-link row-title-link\" href=\"/topic/47/arraymanager-ts_argmax/\" style=\"display:block;width:100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">Arraymanager ts_argmax</a>\n",
      "                    </div>\n",
      "                    <p>![290DF0E5-6DCF-4881-AB05-5978A99CD551.png](/media/spirit/images/59/b572dc3057b97f6f197fd9314ea1b44f.png)![D3C70FA2-4706-47E0-AD5D-BE3D9059B660.png](/media/spirit/images/59/452ca39e5376a1d99fb2d611b4d846ee_N7bRTkS.png)</p>\n",
      "                    <a class=\"row-tags\"  href=\"\">\n",
      "                        vnpy_fxdayu\n",
      "                    </a>\n",
      "                    <div class=\"row-userInfo\">\n",
      "                        <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                        <a class=\"username\" href=\"/user/59/%E5%90%B4%E6%AC%A3%E4%BA%AD/\" style=\"display: block;text-align: left;\">吴欣亭</a >\n",
      "                        <div class=\"userName_mobile\" title=\"2018年8月6日 08:27\">8月 6日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "                <div class=\"row-categary\">\n",
      "                    \n",
      "                        \n",
      "                            <a style=\"color: #228B22;\" href=\"/category/5/vnpy_fxdayu/\">\n",
      "                                vnpy_fxdayu\n",
      "                            </a>\n",
      "                        \n",
      "                    \n",
      "                </div>\n",
      "                <div class=\"row-info\">\n",
      "                    <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                    <div class=\"user-info\">\n",
      "                        <a class=\"username\" href=\"/user/59/%E5%90%B4%E6%AC%A3%E4%BA%AD/\" style=\"display: block;text-align: left;\">吴欣亭</a >\n",
      "                        <div title=\"2018年8月6日 08:27\">8月 6日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "\t\t\t</div>\n",
      "        \n",
      "\t\t\t<div class=\"row\">\n",
      "                \n",
      "                <div class=\"row-answer\">\n",
      "                    <span>0</span>\n",
      "                    <p>Answers</p>\n",
      "                </div>\n",
      "                <div class=\"dialog-box\">\n",
      "                    0\n",
      "                    <div class=\"dialog-radius\"></div>\n",
      "                </div>\n",
      "                <div class=\"row-title\">\n",
      "                    \n",
      "                    \n",
      "                    <div style=\"width: 100%;display: flex;display: -webkit-flex;flex-direction: row;\">\n",
      "                        <a class=\"row-link row-title-link\" href=\"/topic/46/%E5%BC%95%E6%93%8E%E4%BD%BF%E7%94%A8%E9%97%AE%E9%A2%98/\" style=\"display:block;width:100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">引擎使用问题</a>\n",
      "                    </div>\n",
      "                    <p>各位在vnpy_fxdayu的引擎使用过程中遇到问题可以在这里提出，我们会第一时间反馈。\r\n",
      "\r\n",
      "祝好</p>\n",
      "                    <a class=\"row-tags\"  href=\"\">\n",
      "                        vnpy_fxdayu\n",
      "                    </a>\n",
      "                    <div class=\"row-userInfo\">\n",
      "                        <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                        <a class=\"username\" href=\"/user/57/zongzong/\" style=\"display: block;text-align: left;\">zongzong</a >\n",
      "                        <div class=\"userName_mobile\" title=\"2018年8月6日 01:25\">8月 6日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "                <div class=\"row-categary\">\n",
      "                    \n",
      "                        \n",
      "                            <a style=\"color: #228B22;\" href=\"/category/5/vnpy_fxdayu/\">\n",
      "                                vnpy_fxdayu\n",
      "                            </a>\n",
      "                        \n",
      "                    \n",
      "                </div>\n",
      "                <div class=\"row-info\">\n",
      "                    <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                    <div class=\"user-info\">\n",
      "                        <a class=\"username\" href=\"/user/57/zongzong/\" style=\"display: block;text-align: left;\">zongzong</a >\n",
      "                        <div title=\"2018年8月6日 01:25\">8月 6日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "\t\t\t</div>\n",
      "        \n",
      "\t\t\t<div class=\"row\">\n",
      "                \n",
      "                <div class=\"row-answer\">\n",
      "                    <span>0</span>\n",
      "                    <p>Answers</p>\n",
      "                </div>\n",
      "                <div class=\"dialog-box\">\n",
      "                    0\n",
      "                    <div class=\"dialog-radius\"></div>\n",
      "                </div>\n",
      "                <div class=\"row-title\">\n",
      "                    \n",
      "                    \n",
      "                    <div style=\"width: 100%;display: flex;display: -webkit-flex;flex-direction: row;\">\n",
      "                        <a class=\"row-link row-title-link\" href=\"/topic/39/%E8%AE%B2%E5%B8%88%E7%AD%9B%E9%80%89/\" style=\"display:block;width:100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">讲师筛选</a>\n",
      "                    </div>\n",
      "                    <p>自己准备一个千聊直播间，开一个直播，把PPT图片弄上去\r\n",
      "\r\n",
      "1.5分钟介绍高中的Python基础你觉得要怎么教\r\n",
      "2.10-15分钟讲一个知识点，IC与Quantile， 或者， Distribution与Probability\r\n",
      "3.发给Channel审听，随后会有点评与是否录取的通知\r\n",
      "4.通过后需要安排三个半小时内容，有讲师费与当周包住宿\r\n",
      "\r\n",
      "\r\n",
      "DDL: 6.16，没收到的人自动放弃\r\n",
      "Channel</p>\n",
      "                    <a class=\"row-tags\"  href=\"\">\n",
      "                        事件公告\n",
      "                    </a>\n",
      "                    <div class=\"row-userInfo\">\n",
      "                        <img class=\"comment-avatar\" src=\"/media/image/11.png\"/>\n",
      "                        <a class=\"username\" href=\"/user/11/channel_cmt/\" style=\"display: block;text-align: left;\">Channel_CMT</a >\n",
      "                        <div class=\"userName_mobile\" title=\"2018年7月25日 03:51\">7月 25日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "                <div class=\"row-categary\">\n",
      "                    \n",
      "                        \n",
      "                            <a style=\"color: #FF0000;\" href=\"/category/4/%E4%BA%8B%E4%BB%B6%E5%85%AC%E5%91%8A/\">\n",
      "                                事件公告\n",
      "                            </a>\n",
      "                        \n",
      "                    \n",
      "                </div>\n",
      "                <div class=\"row-info\">\n",
      "                    <img class=\"comment-avatar\" src=\"/media/image/11.png\"/>\n",
      "                    <div class=\"user-info\">\n",
      "                        <a class=\"username\" href=\"/user/11/channel_cmt/\" style=\"display: block;text-align: left;\">Channel_CMT</a >\n",
      "                        <div title=\"2018年7月25日 03:51\">7月 25日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "\t\t\t</div>\n",
      "        \n",
      "\t\t\t<div class=\"row\">\n",
      "                \n",
      "                <div class=\"row-answer\">\n",
      "                    <span>0</span>\n",
      "                    <p>Answers</p>\n",
      "                </div>\n",
      "                <div class=\"dialog-box\">\n",
      "                    0\n",
      "                    <div class=\"dialog-radius\"></div>\n",
      "                </div>\n",
      "                <div class=\"row-title\">\n",
      "                    \n",
      "                    \n",
      "                    <div style=\"width: 100%;display: flex;display: -webkit-flex;flex-direction: row;\">\n",
      "                        <a class=\"row-link row-title-link\" href=\"/topic/45/%E7%99%BD%E9%93%B6%E9%97%AE%E9%A2%98%E5%9B%9B/\" style=\"display:block;width:100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">白银问题四</a>\n",
      "                    </div>\n",
      "                    <p>我尝试着读出文件里面的所有股票（共50），然后把他们转为list，但是当我把它loop进去字典的时候就出现了问题\r\n",
      "\r\n",
      "题目：\r\n",
      "![Q4.png](/media/spirit/images/47/bb315089d716c827cace9229fd0c6709.png)\r\n",
      "\r\n",
      "代码：\r\n",
      "![4.png](/media/spirit/images/47/c377488b567322b5154401d0ea327b3d.png)</p>\n",
      "                    <a class=\"row-tags\"  href=\"\">\n",
      "                        未分类\n",
      "                    </a>\n",
      "                    <div class=\"row-userInfo\">\n",
      "                        <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                        <a class=\"username\" href=\"/user/47/bruce/\" style=\"display: block;text-align: left;\">bruce</a >\n",
      "                        <div class=\"userName_mobile\" title=\"2018年7月14日 06:52\">7月 14日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "                <div class=\"row-categary\">\n",
      "                    \n",
      "                        \n",
      "                            <a  href=\"/category/2/uncategorized/\">\n",
      "                                未分类\n",
      "                            </a>\n",
      "                        \n",
      "                    \n",
      "                </div>\n",
      "                <div class=\"row-info\">\n",
      "                    <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                    <div class=\"user-info\">\n",
      "                        <a class=\"username\" href=\"/user/47/bruce/\" style=\"display: block;text-align: left;\">bruce</a >\n",
      "                        <div title=\"2018年7月14日 06:52\">7月 14日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "\t\t\t</div>\n",
      "        \n",
      "\t\t\t<div class=\"row\">\n",
      "                \n",
      "                <div class=\"row-answer\">\n",
      "                    <span>2</span>\n",
      "                    <p>Answers</p>\n",
      "                </div>\n",
      "                <div class=\"dialog-box\">\n",
      "                    2\n",
      "                    <div class=\"dialog-radius\"></div>\n",
      "                </div>\n",
      "                <div class=\"row-title\">\n",
      "                    \n",
      "                    \n",
      "                    <div style=\"width: 100%;display: flex;display: -webkit-flex;flex-direction: row;\">\n",
      "                        <a class=\"row-link row-title-link\" href=\"/topic/44/%E7%99%BD%E9%93%B6%E9%97%AE%E9%A2%98%E4%B8%89/\" style=\"display:block;width:100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">白银问题三</a>\n",
      "                    </div>\n",
      "                    <p>用talib计算600036的10日均线值，将MA的ndarray数据格式转换成Series格式后，用Matplotlib展示，为什么出来的图片是少了很多数据？\r\n",
      "题目：\r\n",
      "![Q2-3.png](/media/spirit/images/47/c26a1b545b89682ed4518f504742bc4e_TaxLWeI.png)\r\n",
      "问题：\r\n",
      "![A2-3.png](/media/spirit/images/47/e82ee9394655c01d1d984abbe3b6d36c.png)</p>\n",
      "                    <a class=\"row-tags\"  href=\"\">\n",
      "                        未分类\n",
      "                    </a>\n",
      "                    <div class=\"row-userInfo\">\n",
      "                        <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                        <a class=\"username\" href=\"/user/47/bruce/\" style=\"display: block;text-align: left;\">bruce</a >\n",
      "                        <div class=\"userName_mobile\" title=\"2018年7月14日 06:52\">7月 14日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "                <div class=\"row-categary\">\n",
      "                    \n",
      "                        \n",
      "                            <a  href=\"/category/2/uncategorized/\">\n",
      "                                未分类\n",
      "                            </a>\n",
      "                        \n",
      "                    \n",
      "                </div>\n",
      "                <div class=\"row-info\">\n",
      "                    <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                    <div class=\"user-info\">\n",
      "                        <a class=\"username\" href=\"/user/47/bruce/\" style=\"display: block;text-align: left;\">bruce</a >\n",
      "                        <div title=\"2018年7月14日 06:52\">7月 14日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "\t\t\t</div>\n",
      "        \n",
      "\t\t\t<div class=\"row\">\n",
      "                \n",
      "                <div class=\"row-answer\">\n",
      "                    <span>1</span>\n",
      "                    <p>Answers</p>\n",
      "                </div>\n",
      "                <div class=\"dialog-box\">\n",
      "                    1\n",
      "                    <div class=\"dialog-radius\"></div>\n",
      "                </div>\n",
      "                <div class=\"row-title\">\n",
      "                    \n",
      "                    \n",
      "                    <div style=\"width: 100%;display: flex;display: -webkit-flex;flex-direction: row;\">\n",
      "                        <a class=\"row-link row-title-link\" href=\"/topic/42/%E6%B5%8B%E8%AF%95%E6%96%87%E4%BB%B6jaqs%E6%8A%A5%E9%94%99mac/\" style=\"display:block;width:100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">测试文件JAQS报错(Mac)</a>\n",
      "                    </div>\n",
      "                    <p>![D9BFD015-926C-4449-BA1D-D981057C3F29.png](/media/spirit/images/47/eef1aa308f298af547536fbda9d9b5fc_w1zJWFA.png)</p>\n",
      "                    <a class=\"row-tags\"  href=\"\">\n",
      "                        未分类\n",
      "                    </a>\n",
      "                    <div class=\"row-userInfo\">\n",
      "                        <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                        <a class=\"username\" href=\"/user/47/bruce/\" style=\"display: block;text-align: left;\">bruce</a >\n",
      "                        <div class=\"userName_mobile\" title=\"2018年7月14日 05:58\">7月 14日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "                <div class=\"row-categary\">\n",
      "                    \n",
      "                        \n",
      "                            <a  href=\"/category/2/uncategorized/\">\n",
      "                                未分类\n",
      "                            </a>\n",
      "                        \n",
      "                    \n",
      "                </div>\n",
      "                <div class=\"row-info\">\n",
      "                    <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                    <div class=\"user-info\">\n",
      "                        <a class=\"username\" href=\"/user/47/bruce/\" style=\"display: block;text-align: left;\">bruce</a >\n",
      "                        <div title=\"2018年7月14日 05:58\">7月 14日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "\t\t\t</div>\n",
      "        \n",
      "\t\t\t<div class=\"row\">\n",
      "                \n",
      "                <div class=\"row-answer\">\n",
      "                    <span>1</span>\n",
      "                    <p>Answers</p>\n",
      "                </div>\n",
      "                <div class=\"dialog-box\">\n",
      "                    1\n",
      "                    <div class=\"dialog-radius\"></div>\n",
      "                </div>\n",
      "                <div class=\"row-title\">\n",
      "                    \n",
      "                    \n",
      "                    <div style=\"width: 100%;display: flex;display: -webkit-flex;flex-direction: row;\">\n",
      "                        <a class=\"row-link row-title-link\" href=\"/topic/34/%E5%9B%A0%E5%AD%90%E8%84%9A%E6%9C%AC%E8%A7%84%E8%8C%83%E8%AF%B4%E6%98%8E/\" style=\"display:block;width:100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">因子脚本规范说明</a>\n",
      "                    </div>\n",
      "                    <p>## **1. 获取指数：**\r\n",
      "因为因子入库时全部使用本地数据，因而需要用以下代码来获取benchmark：\r\n",
      "zz800_benchmark, msg = dv.data_api.daily(&quot;000906.SH&quot;,dv.extended_start_date_d,dv.end_date,fields=&#39;trade_date,close,open&#39;)\r\n",
      "dv.data_benchmark=zz800_benchmark[[&#39;trade_date&#39;,&#39;close&#39;,&#39;open&#39;]].set_index(&#39;trade_date&#39;)\r\n",
      "\r\n",
      "##**2.添加字段：**\r\n",
      "为了防止因为字段未加载而无法计算的问题，除了开高低收成交量外，请使用dv.add_field把他们添加进dataview里。\r\n",
      "例如：dv.add_field(&#39;net_profit&#39;)\r\n",
      "\r\n",
      "##**3. 有使用库的需要把库import 进去**\r\n",
      "例如使用numpy、pandas来计算因子，\r\n",
      "需要import numpy \r\n",
      "import pandas\r\n",
      "\r\n",
      "##**4.不可以直接把其他因子add_field到dv **\r\n",
      "暂时还不开放直接调取其他因子的功能给用户。所以若要使用到其他因子计算，需要将计算其他因子的公式列进去。\r\n",
      "\r\n",
      "##**5. 关于复权价的使用**\r\n",
      "如果因子计算的时间周期较长，使用close_adj得出的结果比较准确。短周期不使用close_adj\r\n",
      "\r\n",
      "##** 6.参数和因子描述信息尽量完整**\r\n",
      "参数和因子描述对用户的使用帮助很大，有的学员图省事，都没有填写，这是不提倡的。\r\n",
      "\r\n",
      "## **7.脚本因子命名遵循之前的作法，复现的在原因子名称后接 _J ，脚本文件名使用提供的相对应的大鱼编号。**\r\n",
      "\r\n",
      "##**8脚本测试**\r\n",
      "需要使用这篇帖子的检测脚本检测，安装和检测说明请移步帖子\r\n",
      "http://bbs.fxdayu.com/topic/25/%E5%9B%A0%E5%AD%90%E8%84%9A%E6%9C%AC%E8%AE%BE%E8%AE%A1%E6%9B%B4%E6%96%B0%E8%A6%81%E6%B1%82/#c1</p>\n",
      "                    <a class=\"row-tags\"  href=\"\">\n",
      "                        事件公告\n",
      "                    </a>\n",
      "                    <div class=\"row-userInfo\">\n",
      "                        <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                        <a class=\"username\" href=\"/user/3/ukamoy/\" style=\"display: block;text-align: left;\">ukamoy</a >\n",
      "                        <div class=\"userName_mobile\" title=\"2018年6月19日 08:04\">6月 19日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "                <div class=\"row-categary\">\n",
      "                    \n",
      "                        \n",
      "                            <a style=\"color: #FF0000;\" href=\"/category/4/%E4%BA%8B%E4%BB%B6%E5%85%AC%E5%91%8A/\">\n",
      "                                事件公告\n",
      "                            </a>\n",
      "                        \n",
      "                    \n",
      "                </div>\n",
      "                <div class=\"row-info\">\n",
      "                    <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                    <div class=\"user-info\">\n",
      "                        <a class=\"username\" href=\"/user/3/ukamoy/\" style=\"display: block;text-align: left;\">ukamoy</a >\n",
      "                        <div title=\"2018年6月19日 08:04\">6月 19日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "\t\t\t</div>\n",
      "        \n",
      "\t\t\t<div class=\"row\">\n",
      "                \n",
      "                <div class=\"row-answer\">\n",
      "                    <span>4</span>\n",
      "                    <p>Answers</p>\n",
      "                </div>\n",
      "                <div class=\"dialog-box\">\n",
      "                    4\n",
      "                    <div class=\"dialog-radius\"></div>\n",
      "                </div>\n",
      "                <div class=\"row-title\">\n",
      "                    \n",
      "                    \n",
      "                    <div style=\"width: 100%;display: flex;display: -webkit-flex;flex-direction: row;\">\n",
      "                        <a class=\"row-link row-title-link\" href=\"/topic/32/%E5%9B%A0%E5%AD%90%E5%A4%8D%E7%8E%B0%E7%9B%B8%E5%85%B3%E9%93%BE%E6%8E%A5/\" style=\"display:block;width:100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">因子复现相关链接</a>\n",
      "                    </div>\n",
      "                    <p>Spearman数据：https://pan.baidu.com/s/1-kY1N-amuaI0QX61nKJelg\r\n",
      "一起来复现： https://yiqixie.com/s/home/fcABFN7VGo00k_IqTbyRtL5WA\r\n",
      "Github地址: https://github.com/ChannelCMT/HelloGit</p>\n",
      "                    <a class=\"row-tags\"  href=\"\">\n",
      "                        事件公告\n",
      "                    </a>\n",
      "                    <div class=\"row-userInfo\">\n",
      "                        <img class=\"comment-avatar\" src=\"/media/image/11.png\"/>\n",
      "                        <a class=\"username\" href=\"/user/11/channel_cmt/\" style=\"display: block;text-align: left;\">Channel_CMT</a >\n",
      "                        <div class=\"userName_mobile\" title=\"2018年6月4日 10:27\">6月 4日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "                <div class=\"row-categary\">\n",
      "                    \n",
      "                        \n",
      "                            <a style=\"color: #FF0000;\" href=\"/category/4/%E4%BA%8B%E4%BB%B6%E5%85%AC%E5%91%8A/\">\n",
      "                                事件公告\n",
      "                            </a>\n",
      "                        \n",
      "                    \n",
      "                </div>\n",
      "                <div class=\"row-info\">\n",
      "                    <img class=\"comment-avatar\" src=\"/media/image/11.png\"/>\n",
      "                    <div class=\"user-info\">\n",
      "                        <a class=\"username\" href=\"/user/11/channel_cmt/\" style=\"display: block;text-align: left;\">Channel_CMT</a >\n",
      "                        <div title=\"2018年6月4日 10:27\">6月 4日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "\t\t\t</div>\n",
      "        \n",
      "\t\t\t<div class=\"row\">\n",
      "                \n",
      "                <div class=\"row-answer\">\n",
      "                    <span>0</span>\n",
      "                    <p>Answers</p>\n",
      "                </div>\n",
      "                <div class=\"dialog-box\">\n",
      "                    0\n",
      "                    <div class=\"dialog-radius\"></div>\n",
      "                </div>\n",
      "                <div class=\"row-title\">\n",
      "                    \n",
      "                    \n",
      "                    <div style=\"width: 100%;display: flex;display: -webkit-flex;flex-direction: row;\">\n",
      "                        <a class=\"row-link row-title-link\" href=\"/topic/38/activesymbol%E4%B8%8B%E5%8D%95%E7%9A%84bug/\" style=\"display:block;width:100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">activeSymbol下单的Bug</a>\n",
      "                    </div>\n",
      "                    <p>1. 在OnTick方法下面的activeSymbol无法下单？\r\n",
      "![TickActiveSymbol.png](/media/spirit/images/11/28463a4a25d8f4674179b2da0cba1d06.png)\r\n",
      "\r\n",
      "2. 把activeSymbol的下单条件改到OnTrade方法下没有执行？这个没有报错，就是没有输出。\r\n",
      "![TradeActiveSymbol.png](/media/spirit/images/11/6dec5fecb82c9ad936a11ed333aacfb5.png)</p>\n",
      "                    <a class=\"row-tags\"  href=\"\">\n",
      "                        vnpy_fxdayu\n",
      "                    </a>\n",
      "                    <div class=\"row-userInfo\">\n",
      "                        <img class=\"comment-avatar\" src=\"/media/image/11.png\"/>\n",
      "                        <a class=\"username\" href=\"/user/11/channel_cmt/\" style=\"display: block;text-align: left;\">Channel_CMT</a >\n",
      "                        <div class=\"userName_mobile\" title=\"2018年6月2日 03:47\">6月 2日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "                <div class=\"row-categary\">\n",
      "                    \n",
      "                        \n",
      "                            <a style=\"color: #228B22;\" href=\"/category/5/vnpy_fxdayu/\">\n",
      "                                vnpy_fxdayu\n",
      "                            </a>\n",
      "                        \n",
      "                    \n",
      "                </div>\n",
      "                <div class=\"row-info\">\n",
      "                    <img class=\"comment-avatar\" src=\"/media/image/11.png\"/>\n",
      "                    <div class=\"user-info\">\n",
      "                        <a class=\"username\" href=\"/user/11/channel_cmt/\" style=\"display: block;text-align: left;\">Channel_CMT</a >\n",
      "                        <div title=\"2018年6月2日 03:47\">6月 2日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "\t\t\t</div>\n",
      "        \n",
      "\t\t\t<div class=\"row\">\n",
      "                \n",
      "                <div class=\"row-answer\">\n",
      "                    <span>0</span>\n",
      "                    <p>Answers</p>\n",
      "                </div>\n",
      "                <div class=\"dialog-box\">\n",
      "                    0\n",
      "                    <div class=\"dialog-radius\"></div>\n",
      "                </div>\n",
      "                <div class=\"row-title\">\n",
      "                    \n",
      "                    \n",
      "                    <div style=\"width: 100%;display: flex;display: -webkit-flex;flex-direction: row;\">\n",
      "                        <a class=\"row-link row-title-link\" href=\"/topic/37/tick%E6%95%B0%E6%8D%AE%E8%B7%A8%E5%B9%B3%E5%8F%B0%E4%BB%B7%E5%B7%AE%E4%BA%A4%E6%98%93/\" style=\"display:block;width:100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">Tick数据跨平台价差交易</a>\n",
      "                    </div>\n",
      "                    <p>提供了biance/huobip/bitfinex的三天Tick数据。\r\n",
      "需要监控btc.ustd的Tick在不同平台间的价差，当价差大于100美金时进行套利交易，并持有至价差在10美金平仓。\r\n",
      "\r\n",
      "问题1： Tick数据怎么按照时间监控，成交是在什么档进行撮合？\r\n",
      "问题2： 如何对Tick进行价差计算，并针对价差编写策略？\r\n",
      "问题3： 如何对价差策略进行合理回测？</p>\n",
      "                    <a class=\"row-tags\"  href=\"\">\n",
      "                        vnpy_fxdayu\n",
      "                    </a>\n",
      "                    <div class=\"row-userInfo\">\n",
      "                        <img class=\"comment-avatar\" src=\"/media/image/11.png\"/>\n",
      "                        <a class=\"username\" href=\"/user/11/channel_cmt/\" style=\"display: block;text-align: left;\">Channel_CMT</a >\n",
      "                        <div class=\"userName_mobile\" title=\"2018年5月30日 09:36\">5月 30日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "                <div class=\"row-categary\">\n",
      "                    \n",
      "                        \n",
      "                            <a style=\"color: #228B22;\" href=\"/category/5/vnpy_fxdayu/\">\n",
      "                                vnpy_fxdayu\n",
      "                            </a>\n",
      "                        \n",
      "                    \n",
      "                </div>\n",
      "                <div class=\"row-info\">\n",
      "                    <img class=\"comment-avatar\" src=\"/media/image/11.png\"/>\n",
      "                    <div class=\"user-info\">\n",
      "                        <a class=\"username\" href=\"/user/11/channel_cmt/\" style=\"display: block;text-align: left;\">Channel_CMT</a >\n",
      "                        <div title=\"2018年5月30日 09:36\">5月 30日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "\t\t\t</div>\n",
      "        \n",
      "\t\t\t<div class=\"row\">\n",
      "                \n",
      "                <div class=\"row-answer\">\n",
      "                    <span>0</span>\n",
      "                    <p>Answers</p>\n",
      "                </div>\n",
      "                <div class=\"dialog-box\">\n",
      "                    0\n",
      "                    <div class=\"dialog-radius\"></div>\n",
      "                </div>\n",
      "                <div class=\"row-title\">\n",
      "                    \n",
      "                    \n",
      "                    <div style=\"width: 100%;display: flex;display: -webkit-flex;flex-direction: row;\">\n",
      "                        <a class=\"row-link row-title-link\" href=\"/topic/36/%E5%AE%9E%E7%8E%B0%E7%AE%80%E5%8D%95%E7%9A%84%E7%BB%9F%E8%AE%A1%E5%A5%97%E5%88%A9%E7%AD%96%E7%95%A5%E6%A8%A1%E6%9D%BF/\" style=\"display:block;width:100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">实现简单的统计套利策略模板</a>\n",
      "                    </div>\n",
      "                    <p>简单配对交易策略逻辑\r\n",
      "\r\n",
      "配对交易即是考察两个品种之间的价格差，在假定价格差是平稳序列的情况下，当观测到价格差往某一个方向偏离时反向操作。\r\n",
      "\r\n",
      "## 第一步，通过tick数据得到两个品种的价格：\r\n",
      "\r\n",
      "使用tick数据合成品种10s，1min，5min等的bar数据，获得品种历史价格序列\r\n",
      "\r\n",
      "## 第二步，计算品种的价格差和beta：\r\n",
      "\r\n",
      "最简单的做法是使用两个品种的价格直接做差，在得到的序列不平稳的情况下也会选择先分别计算两个品种的收益率（或对数收益率），再将收益率做差。\r\n",
      "\r\n",
      "因为各式各样的原因，两个品种的价格差有可能均值不为0，所以在获得价格差序列时会引入beta，即：\r\n",
      "品种1的价格 - beta * 品种2的价格 = 价差\r\n",
      "\r\n",
      "## 第三步，通过价格差计算合理方差：\r\n",
      "\r\n",
      "计算合理方差有几种办法，最简单的是选择直接计算价差序列的标准差，将估计的标准差作为未来一段时间内真实的标准差。\r\n",
      "\r\n",
      "## 第四步，通过标准差进行交易。\r\n",
      "\r\n",
      "假定价差是由品种1-beta份品种2得到的，当价差向上突破给定倍数的标准差时（默认为2倍），可以认为价差在未来有很大概率回归，此时做空品种1，做多beta份品种2，待价差回归到0时平仓。价差向下突破给定倍数的标准差时反之。</p>\n",
      "                    <a class=\"row-tags\"  href=\"\">\n",
      "                        vnpy_fxdayu\n",
      "                    </a>\n",
      "                    <div class=\"row-userInfo\">\n",
      "                        <img class=\"comment-avatar\" src=\"/media/image/11.png\"/>\n",
      "                        <a class=\"username\" href=\"/user/11/channel_cmt/\" style=\"display: block;text-align: left;\">Channel_CMT</a >\n",
      "                        <div class=\"userName_mobile\" title=\"2018年5月30日 09:25\">5月 30日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "                <div class=\"row-categary\">\n",
      "                    \n",
      "                        \n",
      "                            <a style=\"color: #228B22;\" href=\"/category/5/vnpy_fxdayu/\">\n",
      "                                vnpy_fxdayu\n",
      "                            </a>\n",
      "                        \n",
      "                    \n",
      "                </div>\n",
      "                <div class=\"row-info\">\n",
      "                    <img class=\"comment-avatar\" src=\"/media/image/11.png\"/>\n",
      "                    <div class=\"user-info\">\n",
      "                        <a class=\"username\" href=\"/user/11/channel_cmt/\" style=\"display: block;text-align: left;\">Channel_CMT</a >\n",
      "                        <div title=\"2018年5月30日 09:25\">5月 30日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "\t\t\t</div>\n",
      "        \n",
      "\t\t\t<div class=\"row\">\n",
      "                \n",
      "                <div class=\"row-answer\">\n",
      "                    <span>2</span>\n",
      "                    <p>Answers</p>\n",
      "                </div>\n",
      "                <div class=\"dialog-box\">\n",
      "                    2\n",
      "                    <div class=\"dialog-radius\"></div>\n",
      "                </div>\n",
      "                <div class=\"row-title\">\n",
      "                    \n",
      "                    \n",
      "                    <div style=\"width: 100%;display: flex;display: -webkit-flex;flex-direction: row;\">\n",
      "                        <a class=\"row-link row-title-link\" href=\"/topic/35/multipleregression/\" style=\"display:block;width:100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">MultipleRegression</a>\n",
      "                    </div>\n",
      "                    <p>https://github.com/leon-ye/fxdayu_tool/blob/master/multiple_regression.py\r\n",
      "文件中包含了多元回归的函数</p>\n",
      "                    <a class=\"row-tags\"  href=\"\">\n",
      "                        未分类\n",
      "                    </a>\n",
      "                    <div class=\"row-userInfo\">\n",
      "                        <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                        <a class=\"username\" href=\"/user/34/leon/\" style=\"display: block;text-align: left;\">leon</a >\n",
      "                        <div class=\"userName_mobile\" title=\"2018年5月30日 05:30\">5月 30日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "                <div class=\"row-categary\">\n",
      "                    \n",
      "                        \n",
      "                            <a  href=\"/category/2/uncategorized/\">\n",
      "                                未分类\n",
      "                            </a>\n",
      "                        \n",
      "                    \n",
      "                </div>\n",
      "                <div class=\"row-info\">\n",
      "                    <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                    <div class=\"user-info\">\n",
      "                        <a class=\"username\" href=\"/user/34/leon/\" style=\"display: block;text-align: left;\">leon</a >\n",
      "                        <div title=\"2018年5月30日 05:30\">5月 30日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "\t\t\t</div>\n",
      "        \n",
      "\t\t\t<div class=\"row\">\n",
      "                \n",
      "                <div class=\"row-answer\">\n",
      "                    <span>0</span>\n",
      "                    <p>Answers</p>\n",
      "                </div>\n",
      "                <div class=\"dialog-box\">\n",
      "                    0\n",
      "                    <div class=\"dialog-radius\"></div>\n",
      "                </div>\n",
      "                <div class=\"row-title\">\n",
      "                    \n",
      "                    \n",
      "                    <div style=\"width: 100%;display: flex;display: -webkit-flex;flex-direction: row;\">\n",
      "                        <a class=\"row-link row-title-link\" href=\"/topic/33/%E5%AE%89%E8%A3%85gitlab%E7%9A%84vnpy_fxdayu/\" style=\"display:block;width:100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">安装gitlab的vnpy_fxdayu</a>\n",
      "                    </div>\n",
      "                    <p>有好几个Syntax报错，不清楚是什么问题！![SyntaxError.png](/media/spirit/images/2/558f150a46d396cb153461415ffc033a.png)</p>\n",
      "                    <a class=\"row-tags\"  href=\"\">\n",
      "                        vnpy_fxdayu\n",
      "                    </a>\n",
      "                    <div class=\"row-userInfo\">\n",
      "                        <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                        <a class=\"username is-admin\" href=\"/user/2/xinge/\" style=\"display: block;text-align: left;\">xinge</a >\n",
      "                        <div class=\"userName_mobile\" title=\"2018年5月25日 01:35\">5月 25日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "                <div class=\"row-categary\">\n",
      "                    \n",
      "                        \n",
      "                            <a style=\"color: #228B22;\" href=\"/category/5/vnpy_fxdayu/\">\n",
      "                                vnpy_fxdayu\n",
      "                            </a>\n",
      "                        \n",
      "                    \n",
      "                </div>\n",
      "                <div class=\"row-info\">\n",
      "                    <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                    <div class=\"user-info\">\n",
      "                        <a class=\"username is-admin\" href=\"/user/2/xinge/\" style=\"display: block;text-align: left;\">xinge</a >\n",
      "                        <div title=\"2018年5月25日 01:35\">5月 25日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "\t\t\t</div>\n",
      "        \n",
      "\t\t\t<div class=\"row\">\n",
      "                \n",
      "                <div class=\"row-answer\">\n",
      "                    <span>1</span>\n",
      "                    <p>Answers</p>\n",
      "                </div>\n",
      "                <div class=\"dialog-box\">\n",
      "                    1\n",
      "                    <div class=\"dialog-radius\"></div>\n",
      "                </div>\n",
      "                <div class=\"row-title\">\n",
      "                    \n",
      "                    \n",
      "                    <div style=\"width: 100%;display: flex;display: -webkit-flex;flex-direction: row;\">\n",
      "                        <a class=\"row-link row-title-link\" href=\"/topic/10/suoi%E5%9B%A0%E5%AD%90%E5%A4%8D%E7%8E%B0%E7%9A%84%E9%97%AE%E9%A2%98/\" style=\"display:block;width:100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">SUOI因子复现的问题</a>\n",
      "                    </div>\n",
      "                    <p>![SUOI.jpg](/media/spirit/images/19/d162b7e9a97b98f2c7c0b010989c4da1.jpeg)\r\n",
      "未找到将日/季度数据转换为年度数据的函数，且要求中未指明年度数据的取值标准，不知如何复现，请老师指正，非常感谢！</p>\n",
      "                    <a class=\"row-tags\"  href=\"\">\n",
      "                        未分类\n",
      "                    </a>\n",
      "                    <div class=\"row-userInfo\">\n",
      "                        <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                        <a class=\"username\" href=\"/user/19/%E5%8F%B6%E8%93%9D%E5%B1%B1/\" style=\"display: block;text-align: left;\">叶蓝山</a >\n",
      "                        <div class=\"userName_mobile\" title=\"2018年5月18日 03:42\">5月 18日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "                <div class=\"row-categary\">\n",
      "                    \n",
      "                        \n",
      "                            <a  href=\"/category/2/uncategorized/\">\n",
      "                                未分类\n",
      "                            </a>\n",
      "                        \n",
      "                    \n",
      "                </div>\n",
      "                <div class=\"row-info\">\n",
      "                    <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                    <div class=\"user-info\">\n",
      "                        <a class=\"username\" href=\"/user/19/%E5%8F%B6%E8%93%9D%E5%B1%B1/\" style=\"display: block;text-align: left;\">叶蓝山</a >\n",
      "                        <div title=\"2018年5月18日 03:42\">5月 18日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "\t\t\t</div>\n",
      "        \n",
      "\t\t\t<div class=\"row\">\n",
      "                \n",
      "                <div class=\"row-answer\">\n",
      "                    <span>1</span>\n",
      "                    <p>Answers</p>\n",
      "                </div>\n",
      "                <div class=\"dialog-box\">\n",
      "                    1\n",
      "                    <div class=\"dialog-radius\"></div>\n",
      "                </div>\n",
      "                <div class=\"row-title\">\n",
      "                    \n",
      "                    \n",
      "                    <div style=\"width: 100%;display: flex;display: -webkit-flex;flex-direction: row;\">\n",
      "                        <a class=\"row-link row-title-link\" href=\"/topic/31/%E5%A4%9A%E5%9B%A0%E5%AD%90%E6%88%90%E7%BB%A9%E6%8E%92%E5%90%8D%E5%85%AC%E5%B8%83/\" style=\"display:block;width:100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">多因子成绩排名公布</a>\n",
      "                    </div>\n",
      "                    <p>**多因子排名**\r\n",
      "张彦麟\t录取\t95\r\n",
      "张华鸿\t录取\t95\r\n",
      "张安翔\t录取\t90\r\n",
      "宋伦\t录取\t90\r\n",
      "陈栩淦\t录取\t90\r\n",
      "孙国铭\t通过\t80\r\n",
      "于佳佳\t通过\t80\r\n",
      "鲁思丞\t通过\t80\r\n",
      "叶梁\t通过\t80\r\n",
      "谢政航\t通过\t80\r\n",
      "熊弗\t通过\t80\r\n",
      "吴欣亭\t通过\t80\r\n",
      "\r\n",
      "李乾\t待定\t70\r\n",
      "顾俊伦\t待定\t70\r\n",
      "黄嘉豪\t待定\t70\r\n",
      "陈相杰\t待定\t70\r\n",
      "黄媛\t待定\t70\r\n",
      "林鸿\t待定\t70\r\n",
      "曾星宇\t待定\t70\r\n",
      "谢昊\t待定\t70\r\n",
      "\t\t\r\n",
      "黎梓勇\t做多很差,夏普不及格\t59\r\n",
      "陈杰\t做多很差,夏普不及格\t59\r\n",
      "谭红叶\t做多很差,夏普不及格\t59\r\n",
      "查玥\tIC表现不及格\t59\r\n",
      "刘君惠\tIC表现不及格\t59\r\n",
      "丁湛镭\tIC表现不及格\t59\r\n",
      "罗晓牧\tIC表现不及格\t59\r\n",
      "岑萧萍\tIC表现不及格\t59\r\n",
      "\r\n",
      "\r\n",
      "**提前录取5位，7位通过，5位待定。**\r\n",
      "10位不通过的同学，首先我代表大鱼感谢大家付出时间做多因子的研发，大鱼会邮寄纸质版实习证书与赠送一件GitHub的T-Shirt，请大家跟小车报自己的身高，165-S，170-M，175-L，180-XL，185XXL。\r\n",
      "没有做多因子但完成复现的可以获得电子版的云实习证书。\r\n",
      "接下来会安排18位同学的工作，如果有人中途没完成或者放弃，待定可以替换获取实地实习名额。\r\n",
      "有问题可以联系黄翰琪同事\r\n",
      "hanqi.huang@fxdayu.com</p>\n",
      "                    <a class=\"row-tags\"  href=\"\">\n",
      "                        事件公告\n",
      "                    </a>\n",
      "                    <div class=\"row-userInfo\">\n",
      "                        <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                        <a class=\"username is-admin\" href=\"/user/2/xinge/\" style=\"display: block;text-align: left;\">xinge</a >\n",
      "                        <div class=\"userName_mobile\" title=\"2018年5月18日 03:21\">5月 18日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "                <div class=\"row-categary\">\n",
      "                    \n",
      "                        \n",
      "                            <a style=\"color: #FF0000;\" href=\"/category/4/%E4%BA%8B%E4%BB%B6%E5%85%AC%E5%91%8A/\">\n",
      "                                事件公告\n",
      "                            </a>\n",
      "                        \n",
      "                    \n",
      "                </div>\n",
      "                <div class=\"row-info\">\n",
      "                    <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                    <div class=\"user-info\">\n",
      "                        <a class=\"username is-admin\" href=\"/user/2/xinge/\" style=\"display: block;text-align: left;\">xinge</a >\n",
      "                        <div title=\"2018年5月18日 03:21\">5月 18日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "\t\t\t</div>\n",
      "        \n",
      "\t\t\t<div class=\"row\">\n",
      "                \n",
      "                <div class=\"row-answer\">\n",
      "                    <span>2</span>\n",
      "                    <p>Answers</p>\n",
      "                </div>\n",
      "                <div class=\"dialog-box\">\n",
      "                    2\n",
      "                    <div class=\"dialog-radius\"></div>\n",
      "                </div>\n",
      "                <div class=\"row-title\">\n",
      "                    \n",
      "                    \n",
      "                    <div style=\"width: 100%;display: flex;display: -webkit-flex;flex-direction: row;\">\n",
      "                        <a class=\"row-link row-title-link\" href=\"/topic/30/%E5%A4%9A%E5%9B%A0%E5%AD%90%E4%BB%BB%E5%8A%A1%E4%BC%98%E7%A7%80%E5%AD%A6%E5%91%98%E6%A8%A1%E6%9D%BF/\" style=\"display:block;width:100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;\">多因子任务优秀学员模板</a>\n",
      "                    </div>\n",
      "                    <p>张华鸿同学的Git地址\r\n",
      "https://github.com/ZHHHHZ/Git-ZHH</p>\n",
      "                    <a class=\"row-tags\"  href=\"\">\n",
      "                        事件公告\n",
      "                    </a>\n",
      "                    <div class=\"row-userInfo\">\n",
      "                        <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                        <a class=\"username\" href=\"/user/3/ukamoy/\" style=\"display: block;text-align: left;\">ukamoy</a >\n",
      "                        <div class=\"userName_mobile\" title=\"2018年5月12日 13:01\">5月 12日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "                <div class=\"row-categary\">\n",
      "                    \n",
      "                        \n",
      "                            <a style=\"color: #FF0000;\" href=\"/category/4/%E4%BA%8B%E4%BB%B6%E5%85%AC%E5%91%8A/\">\n",
      "                                事件公告\n",
      "                            </a>\n",
      "                        \n",
      "                    \n",
      "                </div>\n",
      "                <div class=\"row-info\">\n",
      "                    <img class=\"comment-avatar\" src=\"/media/image/default.png\"/>\n",
      "                    <div class=\"user-info\">\n",
      "                        <a class=\"username\" href=\"/user/3/ukamoy/\" style=\"display: block;text-align: left;\">ukamoy</a >\n",
      "                        <div title=\"2018年5月12日 13:01\">5月 12日</div>\n",
      "                    </div>\n",
      "                </div>\n",
      "\t\t\t</div>\n",
      "        \n",
      "\n",
      "\t\t</div>\n",
      "\n",
      "<script>\n",
      "    $(document).ready(function() {\n",
      "        // .is_new depends on js (bookmarks)\n",
      "        $('.js-comment-is-new').addClass('is-new');\n",
      "    });\n",
      "</script>\n",
      "\n",
      "\n",
      "    \n",
      "\n",
      "<ul class=\"paginator\">\n",
      "    \n",
      "        \n",
      "\n",
      "        \n",
      "            <li><a class=\"paginator-button\" href=\"?page=1\">1</a></li>\n",
      "        \n",
      "            <li><a class=\"paginator-button\" href=\"?page=2\">2</a></li>\n",
      "        \n",
      "\n",
      "        \n",
      "            <li><a class=\"paginator-button\" href=\"?page=2\"><i class=\"fa fa-chevron-right\"></i></a></li>\n",
      "        \n",
      "    \n",
      "</ul>\n",
      "\n",
      "\n",
      "    \n",
      "\n",
      "    <footer class=\"footer\">\n",
      "\t\t<div class=\"footer-container\">\n",
      "\t\t</div>\n",
      "\t</footer>\n",
      "\n",
      "  </body>\n",
      "\n",
      "</html>\n",
      "\n"
     ]
    }
   ],
   "source": [
    "print(r.text)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "ename": "NameError",
     "evalue": "name 'r' is not defined",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mNameError\u001b[0m                                 Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-1-687f4b4dd656>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[0;32m      2\u001b[0m \u001b[1;31m# import warnings\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m      3\u001b[0m \u001b[1;31m# warnings.filterwarnings(\"ignore\")\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m----> 4\u001b[1;33m \u001b[0mbsObj\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mBeautifulSoup\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mr\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mtext\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;34m\"html.parser\"\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[1;31mNameError\u001b[0m: name 'r' is not defined"
     ]
    }
   ],
   "source": [
    "from bs4 import BeautifulSoup\n",
    "# from lxml import etree\n",
    "# node=etree.HTML(r.text)\n",
    "# node.xpath()\n",
    "# import warnings\n",
    "# warnings.filterwarnings(\"ignore\")\n",
    "bsObj=BeautifulSoup(r.text,\"lxml\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [],
   "source": [
    "topics=bsObj.findAll(\"div\",{\"class\":\"row\"})\n",
    "name_list=[]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [],
   "source": [
    "info=[]\n",
    "for topic in topics:\n",
    "#     print(topic)\n",
    "    name=topic.find(\"a\",{\"class\":\"username\"})\n",
    "    title=topic.find(\"a\",{\"class\":\"row-link row-title-link\"})\n",
    "    content=topic.findAll(\"p\")[1].text\n",
    "    if  name and title:\n",
    "        name=name.text\n",
    "        title=title.text\n",
    "    else :\n",
    "        continue\n",
    "    name_list.append(name)\n",
    "    info.append((name,title,content))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[('xinge',\n",
       "  'TimingDigger信号挖掘',\n",
       "  'HFDataView与Timedigger使用案例：https://github.com/ChannelCMT/HelloGit\\r\\n数据与初步研究案例： https://pan.baidu.com/s/1IC5z9jyPwGJREFwb6GGpsg\\r\\n一起来假设： https://yiqixie.com/s/home/fcAC7HpVKS7B5MMqYi9GHAESf\\r\\n\\r\\n实习生这个月有时间就可以做信号挖掘，熟悉量化策略的生成流程。'),\n",
       " ('高山根',\n",
       "  '不报错也不运行',\n",
       "  '这个即使time span很短了也不运行。。应该不是电脑的原因了\\r\\n![捕获1.jpg](/media/spirit/images/69/7861d23bf979466a5e92ec5c93e42783.jpeg)'),\n",
       " ('Channel_CMT',\n",
       "  'ML_Install_Error',\n",
       "  'jaqs: pip install git+https://github.com/xingetouzi/jaqs-fxdayu.git@localds\\r\\npip: python -m pip install pip==9.0.1\\r\\npython -m pip install pip==9.0.1 -i https://pypi.douban.com/simple\\r\\nrqalpha: pip install rqalpha==3.0.9\\r\\npip install rqalpha==3.0.9 -i https://pypi.douban.com/simple'),\n",
       " ('xinge',\n",
       "  'rqalpha报错',\n",
       "  '**bcolz需要安装1.1.2**\\r\\nbcolz1.1.2_wheel百度云盘链接: https://pan.baidu.com/s/12tPMpaPc0LN3sRbIJtMJrQ\\r\\n**rqalpha版本需要3.0.9**\\r\\npip install rqalpha==3.0.9'),\n",
       " ('吴欣亭',\n",
       "  'Arraymanager ts_argmax',\n",
       "  '![290DF0E5-6DCF-4881-AB05-5978A99CD551.png](/media/spirit/images/59/b572dc3057b97f6f197fd9314ea1b44f.png)![D3C70FA2-4706-47E0-AD5D-BE3D9059B660.png](/media/spirit/images/59/452ca39e5376a1d99fb2d611b4d846ee_N7bRTkS.png)'),\n",
       " ('zongzong',\n",
       "  '引擎使用问题',\n",
       "  '各位在vnpy_fxdayu的引擎使用过程中遇到问题可以在这里提出，我们会第一时间反馈。\\r\\n\\r\\n祝好'),\n",
       " ('Channel_CMT',\n",
       "  '讲师筛选',\n",
       "  '自己准备一个千聊直播间，开一个直播，把PPT图片弄上去\\r\\n\\r\\n1.5分钟介绍高中的Python基础你觉得要怎么教\\r\\n2.10-15分钟讲一个知识点，IC与Quantile， 或者， Distribution与Probability\\r\\n3.发给Channel审听，随后会有点评与是否录取的通知\\r\\n4.通过后需要安排三个半小时内容，有讲师费与当周包住宿\\r\\n\\r\\n\\r\\nDDL: 6.16，没收到的人自动放弃\\r\\nChannel'),\n",
       " ('bruce',\n",
       "  '白银问题四',\n",
       "  '我尝试着读出文件里面的所有股票（共50），然后把他们转为list，但是当我把它loop进去字典的时候就出现了问题\\r\\n\\r\\n题目：\\r\\n![Q4.png](/media/spirit/images/47/bb315089d716c827cace9229fd0c6709.png)\\r\\n\\r\\n代码：\\r\\n![4.png](/media/spirit/images/47/c377488b567322b5154401d0ea327b3d.png)'),\n",
       " ('bruce',\n",
       "  '白银问题三',\n",
       "  '用talib计算600036的10日均线值，将MA的ndarray数据格式转换成Series格式后，用Matplotlib展示，为什么出来的图片是少了很多数据？\\r\\n题目：\\r\\n![Q2-3.png](/media/spirit/images/47/c26a1b545b89682ed4518f504742bc4e_TaxLWeI.png)\\r\\n问题：\\r\\n![A2-3.png](/media/spirit/images/47/e82ee9394655c01d1d984abbe3b6d36c.png)'),\n",
       " ('bruce',\n",
       "  '测试文件JAQS报错(Mac)',\n",
       "  '![D9BFD015-926C-4449-BA1D-D981057C3F29.png](/media/spirit/images/47/eef1aa308f298af547536fbda9d9b5fc_w1zJWFA.png)'),\n",
       " ('ukamoy',\n",
       "  '因子脚本规范说明',\n",
       "  '## **1. 获取指数：**\\r\\n因为因子入库时全部使用本地数据，因而需要用以下代码来获取benchmark：\\r\\nzz800_benchmark, msg = dv.data_api.daily(\"000906.SH\",dv.extended_start_date_d,dv.end_date,fields=\\'trade_date,close,open\\')\\r\\ndv.data_benchmark=zz800_benchmark[[\\'trade_date\\',\\'close\\',\\'open\\']].set_index(\\'trade_date\\')\\r\\n\\r\\n##**2.添加字段：**\\r\\n为了防止因为字段未加载而无法计算的问题，除了开高低收成交量外，请使用dv.add_field把他们添加进dataview里。\\r\\n例如：dv.add_field(\\'net_profit\\')\\r\\n\\r\\n##**3. 有使用库的需要把库import 进去**\\r\\n例如使用numpy、pandas来计算因子，\\r\\n需要import numpy \\r\\nimport pandas\\r\\n\\r\\n##**4.不可以直接把其他因子add_field到dv **\\r\\n暂时还不开放直接调取其他因子的功能给用户。所以若要使用到其他因子计算，需要将计算其他因子的公式列进去。\\r\\n\\r\\n##**5. 关于复权价的使用**\\r\\n如果因子计算的时间周期较长，使用close_adj得出的结果比较准确。短周期不使用close_adj\\r\\n\\r\\n##** 6.参数和因子描述信息尽量完整**\\r\\n参数和因子描述对用户的使用帮助很大，有的学员图省事，都没有填写，这是不提倡的。\\r\\n\\r\\n## **7.脚本因子命名遵循之前的作法，复现的在原因子名称后接 _J ，脚本文件名使用提供的相对应的大鱼编号。**\\r\\n\\r\\n##**8脚本测试**\\r\\n需要使用这篇帖子的检测脚本检测，安装和检测说明请移步帖子\\r\\nhttp://bbs.fxdayu.com/topic/25/%E5%9B%A0%E5%AD%90%E8%84%9A%E6%9C%AC%E8%AE%BE%E8%AE%A1%E6%9B%B4%E6%96%B0%E8%A6%81%E6%B1%82/#c1'),\n",
       " ('Channel_CMT',\n",
       "  '因子复现相关链接',\n",
       "  'Spearman数据：https://pan.baidu.com/s/1-kY1N-amuaI0QX61nKJelg\\r\\n一起来复现： https://yiqixie.com/s/home/fcABFN7VGo00k_IqTbyRtL5WA\\r\\nGithub地址: https://github.com/ChannelCMT/HelloGit'),\n",
       " ('Channel_CMT',\n",
       "  'activeSymbol下单的Bug',\n",
       "  '1. 在OnTick方法下面的activeSymbol无法下单？\\r\\n![TickActiveSymbol.png](/media/spirit/images/11/28463a4a25d8f4674179b2da0cba1d06.png)\\r\\n\\r\\n2. 把activeSymbol的下单条件改到OnTrade方法下没有执行？这个没有报错，就是没有输出。\\r\\n![TradeActiveSymbol.png](/media/spirit/images/11/6dec5fecb82c9ad936a11ed333aacfb5.png)'),\n",
       " ('Channel_CMT',\n",
       "  'Tick数据跨平台价差交易',\n",
       "  '提供了biance/huobip/bitfinex的三天Tick数据。\\r\\n需要监控btc.ustd的Tick在不同平台间的价差，当价差大于100美金时进行套利交易，并持有至价差在10美金平仓。\\r\\n\\r\\n问题1： Tick数据怎么按照时间监控，成交是在什么档进行撮合？\\r\\n问题2： 如何对Tick进行价差计算，并针对价差编写策略？\\r\\n问题3： 如何对价差策略进行合理回测？'),\n",
       " ('Channel_CMT',\n",
       "  '实现简单的统计套利策略模板',\n",
       "  '简单配对交易策略逻辑\\r\\n\\r\\n配对交易即是考察两个品种之间的价格差，在假定价格差是平稳序列的情况下，当观测到价格差往某一个方向偏离时反向操作。\\r\\n\\r\\n## 第一步，通过tick数据得到两个品种的价格：\\r\\n\\r\\n使用tick数据合成品种10s，1min，5min等的bar数据，获得品种历史价格序列\\r\\n\\r\\n## 第二步，计算品种的价格差和beta：\\r\\n\\r\\n最简单的做法是使用两个品种的价格直接做差，在得到的序列不平稳的情况下也会选择先分别计算两个品种的收益率（或对数收益率），再将收益率做差。\\r\\n\\r\\n因为各式各样的原因，两个品种的价格差有可能均值不为0，所以在获得价格差序列时会引入beta，即：\\r\\n品种1的价格 - beta * 品种2的价格 = 价差\\r\\n\\r\\n## 第三步，通过价格差计算合理方差：\\r\\n\\r\\n计算合理方差有几种办法，最简单的是选择直接计算价差序列的标准差，将估计的标准差作为未来一段时间内真实的标准差。\\r\\n\\r\\n## 第四步，通过标准差进行交易。\\r\\n\\r\\n假定价差是由品种1-beta份品种2得到的，当价差向上突破给定倍数的标准差时（默认为2倍），可以认为价差在未来有很大概率回归，此时做空品种1，做多beta份品种2，待价差回归到0时平仓。价差向下突破给定倍数的标准差时反之。'),\n",
       " ('leon',\n",
       "  'MultipleRegression',\n",
       "  'https://github.com/leon-ye/fxdayu_tool/blob/master/multiple_regression.py\\r\\n文件中包含了多元回归的函数'),\n",
       " ('xinge',\n",
       "  '安装gitlab的vnpy_fxdayu',\n",
       "  '有好几个Syntax报错，不清楚是什么问题！![SyntaxError.png](/media/spirit/images/2/558f150a46d396cb153461415ffc033a.png)'),\n",
       " ('叶蓝山',\n",
       "  'SUOI因子复现的问题',\n",
       "  '![SUOI.jpg](/media/spirit/images/19/d162b7e9a97b98f2c7c0b010989c4da1.jpeg)\\r\\n未找到将日/季度数据转换为年度数据的函数，且要求中未指明年度数据的取值标准，不知如何复现，请老师指正，非常感谢！'),\n",
       " ('xinge',\n",
       "  '多因子成绩排名公布',\n",
       "  '**多因子排名**\\r\\n张彦麟\\t录取\\t95\\r\\n张华鸿\\t录取\\t95\\r\\n张安翔\\t录取\\t90\\r\\n宋伦\\t录取\\t90\\r\\n陈栩淦\\t录取\\t90\\r\\n孙国铭\\t通过\\t80\\r\\n于佳佳\\t通过\\t80\\r\\n鲁思丞\\t通过\\t80\\r\\n叶梁\\t通过\\t80\\r\\n谢政航\\t通过\\t80\\r\\n熊弗\\t通过\\t80\\r\\n吴欣亭\\t通过\\t80\\r\\n\\r\\n李乾\\t待定\\t70\\r\\n顾俊伦\\t待定\\t70\\r\\n黄嘉豪\\t待定\\t70\\r\\n陈相杰\\t待定\\t70\\r\\n黄媛\\t待定\\t70\\r\\n林鸿\\t待定\\t70\\r\\n曾星宇\\t待定\\t70\\r\\n谢昊\\t待定\\t70\\r\\n\\t\\t\\r\\n黎梓勇\\t做多很差,夏普不及格\\t59\\r\\n陈杰\\t做多很差,夏普不及格\\t59\\r\\n谭红叶\\t做多很差,夏普不及格\\t59\\r\\n查玥\\tIC表现不及格\\t59\\r\\n刘君惠\\tIC表现不及格\\t59\\r\\n丁湛镭\\tIC表现不及格\\t59\\r\\n罗晓牧\\tIC表现不及格\\t59\\r\\n岑萧萍\\tIC表现不及格\\t59\\r\\n\\r\\n\\r\\n**提前录取5位，7位通过，5位待定。**\\r\\n10位不通过的同学，首先我代表大鱼感谢大家付出时间做多因子的研发，大鱼会邮寄纸质版实习证书与赠送一件GitHub的T-Shirt，请大家跟小车报自己的身高，165-S，170-M，175-L，180-XL，185XXL。\\r\\n没有做多因子但完成复现的可以获得电子版的云实习证书。\\r\\n接下来会安排18位同学的工作，如果有人中途没完成或者放弃，待定可以替换获取实地实习名额。\\r\\n有问题可以联系黄翰琪同事\\r\\nhanqi.huang@fxdayu.com'),\n",
       " ('ukamoy', '多因子任务优秀学员模板', '张华鸿同学的Git地址\\r\\nhttps://github.com/ZHHHHZ/Git-ZHH')]"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "info"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>title</th>\n",
       "      <th>content</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>name</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>Channel_CMT</th>\n",
       "      <td>ML_Install_Error</td>\n",
       "      <td>jaqs: pip install git+https://github.com/xingetouzi/jaqs-fxdayu.git@localds\\r\\npip: python -m pip install pip==9.0.1\\r\\npython -m pip install pip==9.0.1 -i https://pypi.douban.com/simple\\r\\nrqalpha: pip install rqalpha==3.0.9\\r\\npip install rqalpha==3.0.9 -i https://pypi.douban.com/simple</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Channel_CMT</th>\n",
       "      <td>实现简单的统计套利策略模板</td>\n",
       "      <td>简单配对交易策略逻辑\\r\\n\\r\\n配对交易即是考察两个品种之间的价格差，在假定价格差是平稳序列的情况下，当观测到价格差往某一个方向偏离时反向操作。\\r\\n\\r\\n## 第一步，通过tick数据得到两个品种的价格：\\r\\n\\r\\n使用tick数据合成品种10s，1min，5min等的bar数据，获得品种历史价格序列\\r\\n\\r\\n## 第二步，计算品种的价格差和beta：\\r\\n\\r\\n最简单的做法是使用两个品种的价格直接做差，在得到的序列不平稳的情况下也会选择先分别计算两个品种的收益率（或对数收益率），再将收益率做差。\\r\\n\\r\\n因为各式各样的原因，两个品种的价格差有可能均值不为0，所以在获得价格差序列时会引入beta，即：\\r\\n品种1的价格 - beta * 品种2的价格 = 价差\\r\\n\\r\\n## 第三步，通过价格差计算合理方差：\\r\\n\\r\\n计算合理方差有几种办法，最简单的是选择直接计算价差序列的标准差，将估计的标准差作为未来一段时间内真实的标准差。\\r\\n\\r\\n## 第四步，通过标准差进行交易。\\r\\n\\r\\n假定价差是由品种1-beta份品种2得到的，当价差向上突破给定倍数的标准差时（默认为2倍），可以认为价差在未来有很大概率回归，此时做空品种1，做多beta份品种2，待价差回归到0时平仓。价差向下突破给定倍数的标准差时反之。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Channel_CMT</th>\n",
       "      <td>Tick数据跨平台价差交易</td>\n",
       "      <td>提供了biance/huobip/bitfinex的三天Tick数据。\\r\\n需要监控btc.ustd的Tick在不同平台间的价差，当价差大于100美金时进行套利交易，并持有至价差在10美金平仓。\\r\\n\\r\\n问题1： Tick数据怎么按照时间监控，成交是在什么档进行撮合？\\r\\n问题2： 如何对Tick进行价差计算，并针对价差编写策略？\\r\\n问题3： 如何对价差策略进行合理回测？</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Channel_CMT</th>\n",
       "      <td>activeSymbol下单的Bug</td>\n",
       "      <td>1. 在OnTick方法下面的activeSymbol无法下单？\\r\\n![TickActiveSymbol.png](/media/spirit/images/11/28463a4a25d8f4674179b2da0cba1d06.png)\\r\\n\\r\\n2. 把activeSymbol的下单条件改到OnTrade方法下没有执行？这个没有报错，就是没有输出。\\r\\n![TradeActiveSymbol.png](/media/spirit/images/11/6dec5fecb82c9ad936a11ed333aacfb5.png)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Channel_CMT</th>\n",
       "      <td>讲师筛选</td>\n",
       "      <td>自己准备一个千聊直播间，开一个直播，把PPT图片弄上去\\r\\n\\r\\n1.5分钟介绍高中的Python基础你觉得要怎么教\\r\\n2.10-15分钟讲一个知识点，IC与Quantile， 或者， Distribution与Probability\\r\\n3.发给Channel审听，随后会有点评与是否录取的通知\\r\\n4.通过后需要安排三个半小时内容，有讲师费与当周包住宿\\r\\n\\r\\n\\r\\nDDL: 6.16，没收到的人自动放弃\\r\\nChannel</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Channel_CMT</th>\n",
       "      <td>因子复现相关链接</td>\n",
       "      <td>Spearman数据：https://pan.baidu.com/s/1-kY1N-amuaI0QX61nKJelg\\r\\n一起来复现： https://yiqixie.com/s/home/fcABFN7VGo00k_IqTbyRtL5WA\\r\\nGithub地址: https://github.com/ChannelCMT/HelloGit</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>bruce</th>\n",
       "      <td>测试文件JAQS报错(Mac)</td>\n",
       "      <td>![D9BFD015-926C-4449-BA1D-D981057C3F29.png](/media/spirit/images/47/eef1aa308f298af547536fbda9d9b5fc_w1zJWFA.png)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>bruce</th>\n",
       "      <td>白银问题四</td>\n",
       "      <td>我尝试着读出文件里面的所有股票（共50），然后把他们转为list，但是当我把它loop进去字典的时候就出现了问题\\r\\n\\r\\n题目：\\r\\n![Q4.png](/media/spirit/images/47/bb315089d716c827cace9229fd0c6709.png)\\r\\n\\r\\n代码：\\r\\n![4.png](/media/spirit/images/47/c377488b567322b5154401d0ea327b3d.png)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>bruce</th>\n",
       "      <td>白银问题三</td>\n",
       "      <td>用talib计算600036的10日均线值，将MA的ndarray数据格式转换成Series格式后，用Matplotlib展示，为什么出来的图片是少了很多数据？\\r\\n题目：\\r\\n![Q2-3.png](/media/spirit/images/47/c26a1b545b89682ed4518f504742bc4e_TaxLWeI.png)\\r\\n问题：\\r\\n![A2-3.png](/media/spirit/images/47/e82ee9394655c01d1d984abbe3b6d36c.png)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>leon</th>\n",
       "      <td>MultipleRegression</td>\n",
       "      <td>https://github.com/leon-ye/fxdayu_tool/blob/master/multiple_regression.py\\r\\n文件中包含了多元回归的函数</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>ukamoy</th>\n",
       "      <td>多因子任务优秀学员模板</td>\n",
       "      <td>张华鸿同学的Git地址\\r\\nhttps://github.com/ZHHHHZ/Git-ZHH</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>ukamoy</th>\n",
       "      <td>因子脚本规范说明</td>\n",
       "      <td>## **1. 获取指数：**\\r\\n因为因子入库时全部使用本地数据，因而需要用以下代码来获取benchmark：\\r\\nzz800_benchmark, msg = dv.data_api.daily(\"000906.SH\",dv.extended_start_date_d,dv.end_date,fields='trade_date,close,open')\\r\\ndv.data_benchmark=zz800_benchmark[['trade_date','close','open']].set_index('trade_date')\\r\\n\\r\\n##**2.添加字段：**\\r\\n为了防止因为字段未加载而无法计算的问题，除了开高低收成交量外，请使用dv.add_field把他们添加进dataview里。\\r\\n例如：dv.add_field('net_profit')\\r\\n\\r\\n##**3. 有使用库的需要把库import 进去**\\r\\n例如使用numpy、pandas来计算因子，\\r\\n需要import numpy \\r\\nimport pandas\\r\\n\\r\\n##**4.不可以直接把其他因子add_field到dv **\\r\\n暂时还不开放直接调取其他因子的功能给用户。所以若要使用到其他因子计算，需要将计算其他因子的公式列进去。\\r\\n\\r\\n##**5. 关于复权价的使用**\\r\\n如果因子计算的时间周期较长，使用close_adj得出的结果比较准确。短周期不使用close_adj\\r\\n\\r\\n##** 6.参数和因子描述信息尽量完整**\\r\\n参数和因子描述对用户的使用帮助很大，有的学员图省事，都没有填写，这是不提倡的。\\r\\n\\r\\n## **7.脚本因子命名遵循之前的作法，复现的在原因子名称后接 _J ，脚本文件名使用提供的相对应的大鱼编号。**\\r\\n\\r\\n##**8脚本测试**\\r\\n需要使用这篇帖子的检测脚本检测，安装和检测说明请移步帖子\\r\\nhttp://bbs.fxdayu.com/topic/25/%E5%9B%A0%E5%AD%90%E8%84%9A%E6%9C%AC%E8%AE%BE%E8%AE%A1%E6%9B%B4%E6%96%B0%E8%A6%81%E6%B1%82/#c1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>xinge</th>\n",
       "      <td>多因子成绩排名公布</td>\n",
       "      <td>**多因子排名**\\r\\n张彦麟\\t录取\\t95\\r\\n张华鸿\\t录取\\t95\\r\\n张安翔\\t录取\\t90\\r\\n宋伦\\t录取\\t90\\r\\n陈栩淦\\t录取\\t90\\r\\n孙国铭\\t通过\\t80\\r\\n于佳佳\\t通过\\t80\\r\\n鲁思丞\\t通过\\t80\\r\\n叶梁\\t通过\\t80\\r\\n谢政航\\t通过\\t80\\r\\n熊弗\\t通过\\t80\\r\\n吴欣亭\\t通过\\t80\\r\\n\\r\\n李乾\\t待定\\t70\\r\\n顾俊伦\\t待定\\t70\\r\\n黄嘉豪\\t待定\\t70\\r\\n陈相杰\\t待定\\t70\\r\\n黄媛\\t待定\\t70\\r\\n林鸿\\t待定\\t70\\r\\n曾星宇\\t待定\\t70\\r\\n谢昊\\t待定\\t70\\r\\n\\t\\t\\r\\n黎梓勇\\t做多很差,夏普不及格\\t59\\r\\n陈杰\\t做多很差,夏普不及格\\t59\\r\\n谭红叶\\t做多很差,夏普不及格\\t59\\r\\n查玥\\tIC表现不及格\\t59\\r\\n刘君惠\\tIC表现不及格\\t59\\r\\n丁湛镭\\tIC表现不及格\\t59\\r\\n罗晓牧\\tIC表现不及格\\t59\\r\\n岑萧萍\\tIC表现不及格\\t59\\r\\n\\r\\n\\r\\n**提前录取5位，7位通过，5位待定。**\\r\\n10位不通过的同学，首先我代表大鱼感谢大家付出时间做多因子的研发，大鱼会邮寄纸质版实习证书与赠送一件GitHub的T-Shirt，请大家跟小车报自己的身高，165-S，170-M，175-L，180-XL，185XXL。\\r\\n没有做多因子但完成复现的可以获得电子版的云实习证书。\\r\\n接下来会安排18位同学的工作，如果有人中途没完成或者放弃，待定可以替换获取实地实习名额。\\r\\n有问题可以联系黄翰琪同事\\r\\nhanqi.huang@fxdayu.com</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>xinge</th>\n",
       "      <td>rqalpha报错</td>\n",
       "      <td>**bcolz需要安装1.1.2**\\r\\nbcolz1.1.2_wheel百度云盘链接: https://pan.baidu.com/s/12tPMpaPc0LN3sRbIJtMJrQ\\r\\n**rqalpha版本需要3.0.9**\\r\\npip install rqalpha==3.0.9</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>xinge</th>\n",
       "      <td>安装gitlab的vnpy_fxdayu</td>\n",
       "      <td>有好几个Syntax报错，不清楚是什么问题！![SyntaxError.png](/media/spirit/images/2/558f150a46d396cb153461415ffc033a.png)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>xinge</th>\n",
       "      <td>TimingDigger信号挖掘</td>\n",
       "      <td>HFDataView与Timedigger使用案例：https://github.com/ChannelCMT/HelloGit\\r\\n数据与初步研究案例： https://pan.baidu.com/s/1IC5z9jyPwGJREFwb6GGpsg\\r\\n一起来假设： https://yiqixie.com/s/home/fcAC7HpVKS7B5MMqYi9GHAESf\\r\\n\\r\\n实习生这个月有时间就可以做信号挖掘，熟悉量化策略的生成流程。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>zongzong</th>\n",
       "      <td>引擎使用问题</td>\n",
       "      <td>各位在vnpy_fxdayu的引擎使用过程中遇到问题可以在这里提出，我们会第一时间反馈。\\r\\n\\r\\n祝好</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>叶蓝山</th>\n",
       "      <td>SUOI因子复现的问题</td>\n",
       "      <td>![SUOI.jpg](/media/spirit/images/19/d162b7e9a97b98f2c7c0b010989c4da1.jpeg)\\r\\n未找到将日/季度数据转换为年度数据的函数，且要求中未指明年度数据的取值标准，不知如何复现，请老师指正，非常感谢！</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>吴欣亭</th>\n",
       "      <td>Arraymanager ts_argmax</td>\n",
       "      <td>![290DF0E5-6DCF-4881-AB05-5978A99CD551.png](/media/spirit/images/59/b572dc3057b97f6f197fd9314ea1b44f.png)![D3C70FA2-4706-47E0-AD5D-BE3D9059B660.png](/media/spirit/images/59/452ca39e5376a1d99fb2d611b4d846ee_N7bRTkS.png)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>高山根</th>\n",
       "      <td>不报错也不运行</td>\n",
       "      <td>这个即使time span很短了也不运行。。应该不是电脑的原因了\\r\\n![捕获1.jpg](/media/spirit/images/69/7861d23bf979466a5e92ec5c93e42783.jpeg)</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                              title  \\\n",
       "name                                  \n",
       "Channel_CMT        ML_Install_Error   \n",
       "Channel_CMT           实现简单的统计套利策略模板   \n",
       "Channel_CMT           Tick数据跨平台价差交易   \n",
       "Channel_CMT      activeSymbol下单的Bug   \n",
       "Channel_CMT                    讲师筛选   \n",
       "Channel_CMT                因子复现相关链接   \n",
       "bruce               测试文件JAQS报错(Mac)   \n",
       "bruce                         白银问题四   \n",
       "bruce                         白银问题三   \n",
       "leon             MultipleRegression   \n",
       "ukamoy                  多因子任务优秀学员模板   \n",
       "ukamoy                     因子脚本规范说明   \n",
       "xinge                     多因子成绩排名公布   \n",
       "xinge                     rqalpha报错   \n",
       "xinge          安装gitlab的vnpy_fxdayu   \n",
       "xinge              TimingDigger信号挖掘   \n",
       "zongzong                     引擎使用问题   \n",
       "叶蓝山                     SUOI因子复现的问题   \n",
       "吴欣亭          Arraymanager ts_argmax   \n",
       "高山根                         不报错也不运行   \n",
       "\n",
       "                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             content  \n",
       "name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  \n",
       "Channel_CMT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        jaqs: pip install git+https://github.com/xingetouzi/jaqs-fxdayu.git@localds\\r\\npip: python -m pip install pip==9.0.1\\r\\npython -m pip install pip==9.0.1 -i https://pypi.douban.com/simple\\r\\nrqalpha: pip install rqalpha==3.0.9\\r\\npip install rqalpha==3.0.9 -i https://pypi.douban.com/simple  \n",
       "Channel_CMT                                                                                                                                                                                                                                                                                                                                                                                                                 简单配对交易策略逻辑\\r\\n\\r\\n配对交易即是考察两个品种之间的价格差，在假定价格差是平稳序列的情况下，当观测到价格差往某一个方向偏离时反向操作。\\r\\n\\r\\n## 第一步，通过tick数据得到两个品种的价格：\\r\\n\\r\\n使用tick数据合成品种10s，1min，5min等的bar数据，获得品种历史价格序列\\r\\n\\r\\n## 第二步，计算品种的价格差和beta：\\r\\n\\r\\n最简单的做法是使用两个品种的价格直接做差，在得到的序列不平稳的情况下也会选择先分别计算两个品种的收益率（或对数收益率），再将收益率做差。\\r\\n\\r\\n因为各式各样的原因，两个品种的价格差有可能均值不为0，所以在获得价格差序列时会引入beta，即：\\r\\n品种1的价格 - beta * 品种2的价格 = 价差\\r\\n\\r\\n## 第三步，通过价格差计算合理方差：\\r\\n\\r\\n计算合理方差有几种办法，最简单的是选择直接计算价差序列的标准差，将估计的标准差作为未来一段时间内真实的标准差。\\r\\n\\r\\n## 第四步，通过标准差进行交易。\\r\\n\\r\\n假定价差是由品种1-beta份品种2得到的，当价差向上突破给定倍数的标准差时（默认为2倍），可以认为价差在未来有很大概率回归，此时做空品种1，做多beta份品种2，待价差回归到0时平仓。价差向下突破给定倍数的标准差时反之。  \n",
       "Channel_CMT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       提供了biance/huobip/bitfinex的三天Tick数据。\\r\\n需要监控btc.ustd的Tick在不同平台间的价差，当价差大于100美金时进行套利交易，并持有至价差在10美金平仓。\\r\\n\\r\\n问题1： Tick数据怎么按照时间监控，成交是在什么档进行撮合？\\r\\n问题2： 如何对Tick进行价差计算，并针对价差编写策略？\\r\\n问题3： 如何对价差策略进行合理回测？  \n",
       "Channel_CMT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          1. 在OnTick方法下面的activeSymbol无法下单？\\r\\n![TickActiveSymbol.png](/media/spirit/images/11/28463a4a25d8f4674179b2da0cba1d06.png)\\r\\n\\r\\n2. 把activeSymbol的下单条件改到OnTrade方法下没有执行？这个没有报错，就是没有输出。\\r\\n![TradeActiveSymbol.png](/media/spirit/images/11/6dec5fecb82c9ad936a11ed333aacfb5.png)  \n",
       "Channel_CMT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       自己准备一个千聊直播间，开一个直播，把PPT图片弄上去\\r\\n\\r\\n1.5分钟介绍高中的Python基础你觉得要怎么教\\r\\n2.10-15分钟讲一个知识点，IC与Quantile， 或者， Distribution与Probability\\r\\n3.发给Channel审听，随后会有点评与是否录取的通知\\r\\n4.通过后需要安排三个半小时内容，有讲师费与当周包住宿\\r\\n\\r\\n\\r\\nDDL: 6.16，没收到的人自动放弃\\r\\nChannel  \n",
       "Channel_CMT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Spearman数据：https://pan.baidu.com/s/1-kY1N-amuaI0QX61nKJelg\\r\\n一起来复现： https://yiqixie.com/s/home/fcABFN7VGo00k_IqTbyRtL5WA\\r\\nGithub地址: https://github.com/ChannelCMT/HelloGit  \n",
       "bruce                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ![D9BFD015-926C-4449-BA1D-D981057C3F29.png](/media/spirit/images/47/eef1aa308f298af547536fbda9d9b5fc_w1zJWFA.png)  \n",
       "bruce                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            我尝试着读出文件里面的所有股票（共50），然后把他们转为list，但是当我把它loop进去字典的时候就出现了问题\\r\\n\\r\\n题目：\\r\\n![Q4.png](/media/spirit/images/47/bb315089d716c827cace9229fd0c6709.png)\\r\\n\\r\\n代码：\\r\\n![4.png](/media/spirit/images/47/c377488b567322b5154401d0ea327b3d.png)  \n",
       "bruce                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               用talib计算600036的10日均线值，将MA的ndarray数据格式转换成Series格式后，用Matplotlib展示，为什么出来的图片是少了很多数据？\\r\\n题目：\\r\\n![Q2-3.png](/media/spirit/images/47/c26a1b545b89682ed4518f504742bc4e_TaxLWeI.png)\\r\\n问题：\\r\\n![A2-3.png](/media/spirit/images/47/e82ee9394655c01d1d984abbe3b6d36c.png)  \n",
       "leon                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      https://github.com/leon-ye/fxdayu_tool/blob/master/multiple_regression.py\\r\\n文件中包含了多元回归的函数  \n",
       "ukamoy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              张华鸿同学的Git地址\\r\\nhttps://github.com/ZHHHHZ/Git-ZHH  \n",
       "ukamoy       ## **1. 获取指数：**\\r\\n因为因子入库时全部使用本地数据，因而需要用以下代码来获取benchmark：\\r\\nzz800_benchmark, msg = dv.data_api.daily(\"000906.SH\",dv.extended_start_date_d,dv.end_date,fields='trade_date,close,open')\\r\\ndv.data_benchmark=zz800_benchmark[['trade_date','close','open']].set_index('trade_date')\\r\\n\\r\\n##**2.添加字段：**\\r\\n为了防止因为字段未加载而无法计算的问题，除了开高低收成交量外，请使用dv.add_field把他们添加进dataview里。\\r\\n例如：dv.add_field('net_profit')\\r\\n\\r\\n##**3. 有使用库的需要把库import 进去**\\r\\n例如使用numpy、pandas来计算因子，\\r\\n需要import numpy \\r\\nimport pandas\\r\\n\\r\\n##**4.不可以直接把其他因子add_field到dv **\\r\\n暂时还不开放直接调取其他因子的功能给用户。所以若要使用到其他因子计算，需要将计算其他因子的公式列进去。\\r\\n\\r\\n##**5. 关于复权价的使用**\\r\\n如果因子计算的时间周期较长，使用close_adj得出的结果比较准确。短周期不使用close_adj\\r\\n\\r\\n##** 6.参数和因子描述信息尽量完整**\\r\\n参数和因子描述对用户的使用帮助很大，有的学员图省事，都没有填写，这是不提倡的。\\r\\n\\r\\n## **7.脚本因子命名遵循之前的作法，复现的在原因子名称后接 _J ，脚本文件名使用提供的相对应的大鱼编号。**\\r\\n\\r\\n##**8脚本测试**\\r\\n需要使用这篇帖子的检测脚本检测，安装和检测说明请移步帖子\\r\\nhttp://bbs.fxdayu.com/topic/25/%E5%9B%A0%E5%AD%90%E8%84%9A%E6%9C%AC%E8%AE%BE%E8%AE%A1%E6%9B%B4%E6%96%B0%E8%A6%81%E6%B1%82/#c1  \n",
       "xinge                                                                                                                                                                                                                                                   **多因子排名**\\r\\n张彦麟\\t录取\\t95\\r\\n张华鸿\\t录取\\t95\\r\\n张安翔\\t录取\\t90\\r\\n宋伦\\t录取\\t90\\r\\n陈栩淦\\t录取\\t90\\r\\n孙国铭\\t通过\\t80\\r\\n于佳佳\\t通过\\t80\\r\\n鲁思丞\\t通过\\t80\\r\\n叶梁\\t通过\\t80\\r\\n谢政航\\t通过\\t80\\r\\n熊弗\\t通过\\t80\\r\\n吴欣亭\\t通过\\t80\\r\\n\\r\\n李乾\\t待定\\t70\\r\\n顾俊伦\\t待定\\t70\\r\\n黄嘉豪\\t待定\\t70\\r\\n陈相杰\\t待定\\t70\\r\\n黄媛\\t待定\\t70\\r\\n林鸿\\t待定\\t70\\r\\n曾星宇\\t待定\\t70\\r\\n谢昊\\t待定\\t70\\r\\n\\t\\t\\r\\n黎梓勇\\t做多很差,夏普不及格\\t59\\r\\n陈杰\\t做多很差,夏普不及格\\t59\\r\\n谭红叶\\t做多很差,夏普不及格\\t59\\r\\n查玥\\tIC表现不及格\\t59\\r\\n刘君惠\\tIC表现不及格\\t59\\r\\n丁湛镭\\tIC表现不及格\\t59\\r\\n罗晓牧\\tIC表现不及格\\t59\\r\\n岑萧萍\\tIC表现不及格\\t59\\r\\n\\r\\n\\r\\n**提前录取5位，7位通过，5位待定。**\\r\\n10位不通过的同学，首先我代表大鱼感谢大家付出时间做多因子的研发，大鱼会邮寄纸质版实习证书与赠送一件GitHub的T-Shirt，请大家跟小车报自己的身高，165-S，170-M，175-L，180-XL，185XXL。\\r\\n没有做多因子但完成复现的可以获得电子版的云实习证书。\\r\\n接下来会安排18位同学的工作，如果有人中途没完成或者放弃，待定可以替换获取实地实习名额。\\r\\n有问题可以联系黄翰琪同事\\r\\nhanqi.huang@fxdayu.com  \n",
       "xinge                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            **bcolz需要安装1.1.2**\\r\\nbcolz1.1.2_wheel百度云盘链接: https://pan.baidu.com/s/12tPMpaPc0LN3sRbIJtMJrQ\\r\\n**rqalpha版本需要3.0.9**\\r\\npip install rqalpha==3.0.9  \n",
       "xinge                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          有好几个Syntax报错，不清楚是什么问题！![SyntaxError.png](/media/spirit/images/2/558f150a46d396cb153461415ffc033a.png)  \n",
       "xinge                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            HFDataView与Timedigger使用案例：https://github.com/ChannelCMT/HelloGit\\r\\n数据与初步研究案例： https://pan.baidu.com/s/1IC5z9jyPwGJREFwb6GGpsg\\r\\n一起来假设： https://yiqixie.com/s/home/fcAC7HpVKS7B5MMqYi9GHAESf\\r\\n\\r\\n实习生这个月有时间就可以做信号挖掘，熟悉量化策略的生成流程。  \n",
       "zongzong                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      各位在vnpy_fxdayu的引擎使用过程中遇到问题可以在这里提出，我们会第一时间反馈。\\r\\n\\r\\n祝好  \n",
       "叶蓝山                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ![SUOI.jpg](/media/spirit/images/19/d162b7e9a97b98f2c7c0b010989c4da1.jpeg)\\r\\n未找到将日/季度数据转换为年度数据的函数，且要求中未指明年度数据的取值标准，不知如何复现，请老师指正，非常感谢！  \n",
       "吴欣亭                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ![290DF0E5-6DCF-4881-AB05-5978A99CD551.png](/media/spirit/images/59/b572dc3057b97f6f197fd9314ea1b44f.png)![D3C70FA2-4706-47E0-AD5D-BE3D9059B660.png](/media/spirit/images/59/452ca39e5376a1d99fb2d611b4d846ee_N7bRTkS.png)  \n",
       "高山根                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    这个即使time span很短了也不运行。。应该不是电脑的原因了\\r\\n![捕获1.jpg](/media/spirit/images/69/7861d23bf979466a5e92ec5c93e42783.jpeg)  "
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import pandas as pd\n",
    "pd.set_option(\"display.width\",300)\n",
    "pd.set_option(\"display.max_colwidth\",1000)\n",
    "df=pd.DataFrame(info,columns=[\"name\",\"title\",\"content\"])\n",
    "df=df.set_index(\"name\")\n",
    "df=df.sort_index()\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "df[\"content\"]=df[\"content\"].map(lambda x:x.replace(\"\\r\\n\",\" \"))\n",
    "df[\"content\"]=df[\"content\"].map(lambda x:x.replace(\"\\t\",\" \"))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>title</th>\n",
       "      <th>content</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>name</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>Channel_CMT</th>\n",
       "      <td>ML_Install_Error</td>\n",
       "      <td>jaqs: pip install git+https://github.com/xingetouzi/jaqs-fxdayu.git@localds pip: python -m pip install pip==9.0.1 python -m pip install pip==9.0.1 -i https://pypi.douban.com/simple rqalpha: pip install rqalpha==3.0.9 pip install rqalpha==3.0.9 -i https://pypi.douban.com/simple</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Channel_CMT</th>\n",
       "      <td>实现简单的统计套利策略模板</td>\n",
       "      <td>简单配对交易策略逻辑  配对交易即是考察两个品种之间的价格差，在假定价格差是平稳序列的情况下，当观测到价格差往某一个方向偏离时反向操作。  ## 第一步，通过tick数据得到两个品种的价格：  使用tick数据合成品种10s，1min，5min等的bar数据，获得品种历史价格序列  ## 第二步，计算品种的价格差和beta：  最简单的做法是使用两个品种的价格直接做差，在得到的序列不平稳的情况下也会选择先分别计算两个品种的收益率（或对数收益率），再将收益率做差。  因为各式各样的原因，两个品种的价格差有可能均值不为0，所以在获得价格差序列时会引入beta，即： 品种1的价格 - beta * 品种2的价格 = 价差  ## 第三步，通过价格差计算合理方差：  计算合理方差有几种办法，最简单的是选择直接计算价差序列的标准差，将估计的标准差作为未来一段时间内真实的标准差。  ## 第四步，通过标准差进行交易。  假定价差是由品种1-beta份品种2得到的，当价差向上突破给定倍数的标准差时（默认为2倍），可以认为价差在未来有很大概率回归，此时做空品种1，做多beta份品种2，待价差回归到0时平仓。价差向下突破给定倍数的标准差时反之。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Channel_CMT</th>\n",
       "      <td>Tick数据跨平台价差交易</td>\n",
       "      <td>提供了biance/huobip/bitfinex的三天Tick数据。 需要监控btc.ustd的Tick在不同平台间的价差，当价差大于100美金时进行套利交易，并持有至价差在10美金平仓。  问题1： Tick数据怎么按照时间监控，成交是在什么档进行撮合？ 问题2： 如何对Tick进行价差计算，并针对价差编写策略？ 问题3： 如何对价差策略进行合理回测？</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Channel_CMT</th>\n",
       "      <td>activeSymbol下单的Bug</td>\n",
       "      <td>1. 在OnTick方法下面的activeSymbol无法下单？ ![TickActiveSymbol.png](/media/spirit/images/11/28463a4a25d8f4674179b2da0cba1d06.png)  2. 把activeSymbol的下单条件改到OnTrade方法下没有执行？这个没有报错，就是没有输出。 ![TradeActiveSymbol.png](/media/spirit/images/11/6dec5fecb82c9ad936a11ed333aacfb5.png)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Channel_CMT</th>\n",
       "      <td>讲师筛选</td>\n",
       "      <td>自己准备一个千聊直播间，开一个直播，把PPT图片弄上去  1.5分钟介绍高中的Python基础你觉得要怎么教 2.10-15分钟讲一个知识点，IC与Quantile， 或者， Distribution与Probability 3.发给Channel审听，随后会有点评与是否录取的通知 4.通过后需要安排三个半小时内容，有讲师费与当周包住宿   DDL: 6.16，没收到的人自动放弃 Channel</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Channel_CMT</th>\n",
       "      <td>因子复现相关链接</td>\n",
       "      <td>Spearman数据：https://pan.baidu.com/s/1-kY1N-amuaI0QX61nKJelg 一起来复现： https://yiqixie.com/s/home/fcABFN7VGo00k_IqTbyRtL5WA Github地址: https://github.com/ChannelCMT/HelloGit</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                          title  \\\n",
       "name                              \n",
       "Channel_CMT    ML_Install_Error   \n",
       "Channel_CMT       实现简单的统计套利策略模板   \n",
       "Channel_CMT       Tick数据跨平台价差交易   \n",
       "Channel_CMT  activeSymbol下单的Bug   \n",
       "Channel_CMT                讲师筛选   \n",
       "Channel_CMT            因子复现相关链接   \n",
       "\n",
       "                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               content  \n",
       "name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    \n",
       "Channel_CMT                                                                                                                                                                                                                                                      jaqs: pip install git+https://github.com/xingetouzi/jaqs-fxdayu.git@localds pip: python -m pip install pip==9.0.1 python -m pip install pip==9.0.1 -i https://pypi.douban.com/simple rqalpha: pip install rqalpha==3.0.9 pip install rqalpha==3.0.9 -i https://pypi.douban.com/simple  \n",
       "Channel_CMT  简单配对交易策略逻辑  配对交易即是考察两个品种之间的价格差，在假定价格差是平稳序列的情况下，当观测到价格差往某一个方向偏离时反向操作。  ## 第一步，通过tick数据得到两个品种的价格：  使用tick数据合成品种10s，1min，5min等的bar数据，获得品种历史价格序列  ## 第二步，计算品种的价格差和beta：  最简单的做法是使用两个品种的价格直接做差，在得到的序列不平稳的情况下也会选择先分别计算两个品种的收益率（或对数收益率），再将收益率做差。  因为各式各样的原因，两个品种的价格差有可能均值不为0，所以在获得价格差序列时会引入beta，即： 品种1的价格 - beta * 品种2的价格 = 价差  ## 第三步，通过价格差计算合理方差：  计算合理方差有几种办法，最简单的是选择直接计算价差序列的标准差，将估计的标准差作为未来一段时间内真实的标准差。  ## 第四步，通过标准差进行交易。  假定价差是由品种1-beta份品种2得到的，当价差向上突破给定倍数的标准差时（默认为2倍），可以认为价差在未来有很大概率回归，此时做空品种1，做多beta份品种2，待价差回归到0时平仓。价差向下突破给定倍数的标准差时反之。  \n",
       "Channel_CMT                                                                                                                                                                                                                                                                                                                                                        提供了biance/huobip/bitfinex的三天Tick数据。 需要监控btc.ustd的Tick在不同平台间的价差，当价差大于100美金时进行套利交易，并持有至价差在10美金平仓。  问题1： Tick数据怎么按照时间监控，成交是在什么档进行撮合？ 问题2： 如何对Tick进行价差计算，并针对价差编写策略？ 问题3： 如何对价差策略进行合理回测？  \n",
       "Channel_CMT                                                                                                                                                                                                                                                                        1. 在OnTick方法下面的activeSymbol无法下单？ ![TickActiveSymbol.png](/media/spirit/images/11/28463a4a25d8f4674179b2da0cba1d06.png)  2. 把activeSymbol的下单条件改到OnTrade方法下没有执行？这个没有报错，就是没有输出。 ![TradeActiveSymbol.png](/media/spirit/images/11/6dec5fecb82c9ad936a11ed333aacfb5.png)  \n",
       "Channel_CMT                                                                                                                                                                                                                                                                                                                                    自己准备一个千聊直播间，开一个直播，把PPT图片弄上去  1.5分钟介绍高中的Python基础你觉得要怎么教 2.10-15分钟讲一个知识点，IC与Quantile， 或者， Distribution与Probability 3.发给Channel审听，随后会有点评与是否录取的通知 4.通过后需要安排三个半小时内容，有讲师费与当周包住宿   DDL: 6.16，没收到的人自动放弃 Channel  \n",
       "Channel_CMT                                                                                                                                                                                                                                                                                                                                                                    Spearman数据：https://pan.baidu.com/s/1-kY1N-amuaI0QX61nKJelg 一起来复现： https://yiqixie.com/s/home/fcABFN7VGo00k_IqTbyRtL5WA Github地址: https://github.com/ChannelCMT/HelloGit  "
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df.loc[\"Channel_CMT\"]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [],
   "source": [
    "df.to_html(\"fxdayu.html\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
